OS
Get information on the operating system and its user (name, version, architecture, host name, time zone, language, directories) and execute an OS command. Typical use: adapt a script to the machine, call a system tool.
os versionos archos nameos typeos hostnameos user_timezoneos user_nameos user_langos user_homeos user_diros execute
os version
Description
To get the OS version
To get the OS version
admin
os version
mentdb
10.12.6
Often used with
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
os arch
Description
To get the OS architecture
To get the OS architecture
admin
os arch
mentdb
x86_64
Used in use cases (2 recipes)
System administrator & DevOps › Server inventory and security checks
System administrator & DevOps › CMDB record with a hashed host id
System administrator & DevOps › Server inventory and security checks
System administrator & DevOps › CMDB record with a hashed host id
Often used with
json doc · json iobject · metric java version · metric system nb processor · os type · version · ai firstname · ai lastname
json doc · json iobject · metric java version · metric system nb processor · os type · version · ai firstname · ai lastname
os name
Description
To get the OS name
To get the OS name
admin
os name
mentdb
Mac OS X
Often used with
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
os type
Description
To get the OS type
To get the OS type
admin
os type
mentdb
Mac OS X
Used in use cases (2 recipes)
System administrator & DevOps › Server inventory and security checks
System administrator & DevOps › CMDB record with a hashed host id
System administrator & DevOps › Server inventory and security checks
System administrator & DevOps › CMDB record with a hashed host id
Often used with
json doc · json iobject · metric java version · metric system nb processor · os arch · version · ai firstname · ai lastname
json doc · json iobject · metric java version · metric system nb processor · os arch · version · ai firstname · ai lastname
os hostname
Description
To get the OS hostname
To get the OS hostname
admin
os hostname
mentdb
MacBook-Pro-de-Jimmitry.local
Used in use cases (2 recipes)
IoT & sensor engineer › Health report of an IoT gateway
System administrator & DevOps › CMDB record with a hashed host id
IoT & sensor engineer › Health report of an IoT gateway
System administrator & DevOps › CMDB record with a hashed host id
Often used with
json doc · json iobject · string left · date systimestamp · date to_iso · metric current available mem · metric current cpu jvm · metric date
json doc · json iobject · string left · date systimestamp · date to_iso · metric current available mem · metric current cpu jvm · metric date
os user_timezone
Description
To get the OS user time zone
To get the OS user time zone
admin
os user_timezone
mentdb
Indian/Reunion
Often used with
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
os user_name
Description
To get the OS user name
To get the OS user name
admin
os user_name
mentdb
jimmitry
Often used with
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
os user_lang
Description
To get the OS user language
To get the OS user language
admin
os user_lang
mentdb
fr
Often used with
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
os user_home
Description
To get the OS user home directory
To get the OS user home directory
admin
os user_home
mentdb
/Users/jimmitry
Often used with
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
os user_dir
Description
To get the OS user directory
To get the OS user directory
admin
os user_dir
mentdb
/Users/jimmitry/Documents/jpayet/INNOV-AI/MENTDB/MentDB_Server
Often used with
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
ai firstname · ai lastname · config cert · function count · json doc · json iobject · metric java vendor · metric java version
os execute <jsonCmdArray> <minWait>
Description
To execute an OS command
To execute an OS command
Parameters
jsonCmdArray: The JSON command array - string - required
minWait: The minimum wait time to get the result - number - required
jsonCmdArray: The JSON command array - string - required
minWait: The minimum wait time to get the result - number - required
admin
os execute "[\"uname\", \"-a\"]" 1000;
mentdb
Darwin MacBook-Pro-de-Jimmitry.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
