Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fusioninventory::agent::tools::linux(3pm) [debian man page]

FusionInventory::Agent::Tools::Linux(3pm)		User Contributed Perl Documentation		 FusionInventory::Agent::Tools::Linux(3pm)

NAME
FusionInventory::Agent::Tools::Linux - Linux generic functions DESCRIPTION
This module provides some generic functions for Linux. FUNCTIONS
getDevicesFromUdev(%params) Returns a list of devices, by parsing udev database. Availables parameters: logger a logger object getDevicesFromHal(%params) Returns a list of devices, by parsing lshal output. Availables parameters: logger a logger object command the exact command to use (default: /usr/sbin/lshal) file the file to use, as an alternative to the command getDevicesFromProc(%params) Returns a list of devices, by parsing /proc filesystem. Availables parameters: logger a logger object getCPUsFromProc(%params) Returns a list of cpus, by parsing /proc/cpuinfo file Availables parameters: logger a logger object file the file to use (default: /proc/cpuinfo) getInfoFromSmartctl(%params) Returns some information about a drive, using smartctl. Availables parameters: logger a logger object device the device to use file the file to use getInterfacesFromIfconfig(%params) Returns the list of interfaces, by parsing ifconfig command output. Availables parameters: logger a logger object command the command to use (default: /sbin/ifconfig -a) file the file to use getInterfacesFromIp(%params) Returns the list of interfaces, by parsing ip command output. Availables parameters: logger a logger object command the command to use (default: /sbin/ip addr show) file the file to use perl v5.14.2 2012-06-25 FusionInventory::Agent::Tools::Linux(3pm)

Check Out this Related Man Page

FusionInventory::Agent::Tools::Win32(3pm)		User Contributed Perl Documentation		 FusionInventory::Agent::Tools::Win32(3pm)

NAME
FusionInventory::Agent::Tools::Win32 - Windows generic functions DESCRIPTION
This module provides some Windows-specific generic functions. FUNCTIONS
is64bit() Returns true if the OS is 64bit or false. getLocalCodepage() Returns the local codepage. getWmiObjects(%params) Returns the list of objects from given WMI class, with given properties, properly encoded. moniker a WMI moniker (default: winmgmts:{impersonationLevel=impersonate,(security)}!//./) class a WMI class properties a list of WMI properties encodeFromRegistry($string) Ensure given registry content is properly encoded to utf-8. getRegistryValue(%params) Returns a value from the registry. path a string in hive/key/value format E.g: HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/ProductName logger getRegistryKey(%params) Returns a key from the registry. path a string in hive/key format E.g: HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion logger runCommand(%params) Returns a command in a Win32 Process command the command to run timeout a time in second, default is 3600*2 no_stderr ignore STDERR output, default is false =back Return an array exitcode the error code, 293 means a timeout occurred fd a file descriptor on the output perl v5.14.2 2012-06-25 FusionInventory::Agent::Tools::Win32(3pm)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to find the help in Linux

The command 'man' can display the usage of command, is there any other command that can show the help in Linux? Thk a lot (3 Replies)
Discussion started by: zp523444
3 Replies

2. Programming

Key logger

I want to program my own key logger to register every key pushed on my system... could i record clicks? Well, my question in fact is not one at all... because i dont have a starting point. I'll appreciate your bases :(. ty. (5 Replies)
Discussion started by: Jariya
5 Replies

3. Shell Programming and Scripting

parsing output

I have a file that contains the output of the ls -iR command, something like this: ./results: 2504641011 result_1410 2500957642 result_525 2504641012 result_1425 2500957643 result_540 ./tests/1: 2500788755 1 2500788743 1000 ./tests/2: 2500788759 3 2500788758 999 ... (6 Replies)
Discussion started by: looza
6 Replies

4. UNIX for Dummies Questions & Answers

Dummy question about /proc/cpuinfo

Perhaps this is a very dummy question but sorry I don't know other place to do it. We just buy a new cluster of Xeon machines but there is something I don't understand and perhaps someone can help me. The more /proc/cpuinfo produces the following output (just part of it). processor : 0... (1 Reply)
Discussion started by: jhc
1 Replies

5. Shell Programming and Scripting

file parsing

hi experts, i have two files as fileA and fileB fileA ===== "assembly_warehouse";"product_code";"sequence_number";"expiry_date";"component_whouse";"component_code" "01";"3013000005 ";"0030";"2099/12/31";"01";"1001110002 " "01";"3013000005 ";"0040";"2099/12/31";"01";"1001120002 "... (2 Replies)
Discussion started by: subhendu81
2 Replies

6. Shell Programming and Scripting

Extracting value from a file updating the same in another file

Hi, I have two different files like this First File (information file) # agent.properties xpm.Location=30000 # logger.properties xpm.logger.LogLevel=INFO xpm.logger.NumberOfFiles=5 xpm.logger.MaxFileSize=1MB # logger.properties logger.LogLevel=INFO logger.max_backup_index=5... (5 Replies)
Discussion started by: raghu.amilineni
5 Replies

7. UNIX for Dummies Questions & Answers

Definition of "siblings" in /proc/cpuinfo

So, I'm looking over /proc/cpuinfo and have a question... I've read that "siblings" refers to hyperthreading, but that seems odd considering the contents of cpuinfo. Here's a part: model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz physical id : 0 siblings : 4 core... (1 Reply)
Discussion started by: treesloth
1 Replies

8. Red Hat

lshal command is not working in RedHat

lshal command is not working in RadHat Linux 9. Whether it is not supported in RedHat or is any other equivalent command for lshal ? (7 Replies)
Discussion started by: forumguest
7 Replies

9. UNIX for Dummies Questions & Answers

Error: "logger: illegal option -- p"

Hi All, I am working on a Solaris 10 server. From this month start, it gives the error "logger: illegal option -- p" with each command. If I execute a script whose output shown on terminal, it comes many times.. Could you please help? It comes only for my login. And I dont remember any changes... (4 Replies)
Discussion started by: jaiseaugustine
4 Replies

10. Shell Programming and Scripting

dont have a clue again- flying bat data new logger

hi, this is related to this thread https://www.unix.com/shell-programming-scripting/154822-dont-have-clue-program-use-process-flying-bat-data.html using another type of logger (ipcas ipether232) which produces csv data but not seperated into differnt folders. I need to work out how to get... (2 Replies)
Discussion started by: cmp260
2 Replies

11. Red Hat

Question on /proc/cpuinfo

Hi, I wanted to understand what exactly /proc/cpuinfo shows? We have a machine with following specification... (2x) Intel Xeon 6-core processors So, ideally it shouls have 12processors, but the output on /proc/cpuinfo shows 24 processors. Can someone please explain how this is... (3 Replies)
Discussion started by: shrshah64
3 Replies

12. Shell Programming and Scripting

Merge output of 2 commands into variable

I am extracting two pieces of information from the following file: /proc/cpuinfo, that I need to merge into one report. The first command: grep -i processor /proc/cpuinfo | awk '{print $1$2,$3}' yields: processor: 0 processor: 1 processor: 2 processor: 3 The second command: grep -i... (4 Replies)
Discussion started by: jamarsh
4 Replies

13. Shell Programming and Scripting

Piping the "script" command through the logger command.

I use the snippet below in /etc/profile on RHEL Linux to capture command line logging and it all works well and good. Now I'd like to pipe the same output from script through the logger command so it all gets logged to syslog. The only additional code I've added is in bold below (|... (4 Replies)
Discussion started by: woodson2
4 Replies

14. Red Hat

Mounting temperature logger on Centos 7.0

When inserting a temperature logger into a Centos 7.0 machine, the relevant dmesg lines read: usb 2-1.4: new full-speed USB device number 4 using ehci-pci usb 2-1.4: New USB device found, idVendor=10c4, idProduct=82cd usb 2-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb... (5 Replies)
Discussion started by: figaro
5 Replies

15. Shell Programming and Scripting

Looking for a return value weather smartctl is running a (short) selftest or not

Hey guys, I'm kinda stuck here.. I'm trying to write a script, which should start a short selftest via smartctl, for example smartctl -t short /dev/sda and after the test is finished I want it to write the new smartvalues in a logfile. well... Now I need a return value for wether the... (1 Reply)
Discussion started by: phill971
1 Replies