fusioninventory::agent::tools::win32(3pm) [debian 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)
Check Out this Related Man Page
FusionInventory::Agent::Storage(3pm) User Contributed Perl Documentation FusionInventory::Agent::Storage(3pm)NAME
FusionInventory::Agent::Storage - A data serializer/deserializer
SYNOPSIS
my $storage = FusionInventory::Agent::Storage->new(
directory => '/tmp'
);
my $data = $storage->restore(
module => "FusionInventory::Agent"
);
$data->{foo} = 'bar';
$storage->save(data => $data);
DESCRIPTION
This is the object used by the agent to ensure data persistancy between invocations.
Each data structure is saved in a file, whose name is automatically determined according to object class name. An optional index number can
be used to differentiate between consecutives usages.
METHODS
new(%params)
The constructor. The following parameters are allowed, as keys of the %params hash:
logger
the logger object to use
directory
the directory to use for storing data (mandatory)
getDirectory
Returns the underlying directory for this storage.
has(%params)
Returns true if a saved data structure exists. The following arguments are allowed:
name
The file name to use for saving the data structure (mandatory).
save(%params)
Save given data structure. The following parameters are allowed, as keys of the %params hash:
name
The file name to use for saving the data structure (mandatory).
restore(%params)
Restore a saved data structure. The following parameters are allowed, as keys of the %params hash:
name
The file name to use for saving the data structure (mandatory).
remove(%params)
Delete the file containing a seralized data structure for a given module. The following parameters are allowed, as keys of the %params
hash:
name
The file name to use for saving the data structure (mandatory).
perl v5.14.2 2012-06-14 FusionInventory::Agent::Storage(3pm)
Hi all, i wrote this script and the code appears to work except i cannot connect to the WMI interface on Windows XP boxes. The listing is printed for testing purposes so i know that part works. When it tries to connect to WMI, the script dies. Should echo these properties to me. I think the... (5 Replies)
Hi Folks,
I am using Perl module Win32::IEAutomation for automating a web page which is implented using iceface.
I am trying to click on a image which has the following html code:
<input alt="Incidents" class="iceCmdBtn" id="_id68:_id79" name="_id68:_id79" onblur="setFocus('');"... (5 Replies)
Hi,
I am using Win32::IEAutomation module to automate my Web based application.
I am trying to prepare a report for the test cases I automated.
The problem is I am unable to get the execution status of the commands gotoURL, getButton .... to know if my button click or url redirection is... (2 Replies)
Hi,
I am windows programer. I have very basic knowledge of Unix OS.
I have written an application in Windows which consists of Win32 API namely WideCharToMultiByte(..) and MultiByteToWideChar(..).
I am interested to deploy my application in unix platform henceforth I need to know IS... (1 Reply)
I had a problem with a file in use on a Win2003 server, and found a really good program on Microsoft's web site.
It is the equivalent of unix fuser.
Process Explorer (5 Replies)
Hi all,
. I am developing a log monitoring solution in perl for Windows I am using the CPAN module Win32 ::EventLog (0.076) version for getting the events from windows. The problem which I am facing now is all the Windows 2008 machines are upgraded with Service pack2 from then I couldn’t able... (2 Replies)
I am trying to export windows display to my unix SunOS
I have Windows server 2000 which has X-Win32 v6 installed.
I start X-Win32. I then go to configure session with the following details.
1. host name: myhost
2. command: xterm -ls
3 username: user1
4 password: password
Then i right... (1 Reply)
Hi All ,
I am stuck on the below situation.I have a table called "test" which are created on hive.I need to export the data from hive to a file(test.txt) on local unix system.I have tried the below command ,but its giving the exception .
hive -e "select * from test " > /home/user/test.txt ;
... (1 Reply)