User Profile

Collapse

Profile Sidebar

Collapse
idoha
idoha
Last Activity: Apr 7 '08, 09:49 PM
Joined: Aug 1 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • idoha
    started a topic Monitor SNMP Service
    in Perl

    Monitor SNMP Service

    Hi,

    I am trying to determine the SNMP status on remote machine.
    I need to distinguish between two possible options, where the SNMP is not active:

    1)When the SNMP listener is not active on a certain port (default is 161). This is caused when the SNMP service is off or when it listens to port other than 161.

    2)When the communityString is incorrect.

    I have been trying to use NET::SNMP...
    See more | Go to post

  • idoha
    replied to Set administrator privileges to WMI script
    in Perl
    Hi,

    WMI stands for Windows Management Instrumentation . This is a set of extenstions by which you can retrieve information about the OS and manage its components like processes, services, memory, cpu usage etc..

    My mail goal is to kill processes created by the OS. WMI is just one option to do that. Currently, all options including WMI are failing to terminate processes because administrator priviliges are required to...
    See more | Go to post

    Leave a comment:


  • idoha
    replied to Set administrator privileges to WMI script
    in Perl
    Hi,

    I am familier with the "connect server" function you have suggested.
    The only problem is that this is useful in order to run WMI on remote machines, while I need to run in on a local machine.
    I tried to use the "connect server" to connect to localhost but it refused, saying that connection to localhosts are not permitted.

    Any other options?

    Thanks,
    ...
    See more | Go to post

    Leave a comment:


  • idoha
    started a topic Set administrator privileges to WMI script
    in Perl

    Set administrator privileges to WMI script

    Hi,

    I am trying to write a script that kills processes that generated by the OS on a localhost. The problem is that this script must be run under a user with administrator privileges, otheriwse the script wont be able to kill the processes.

    Generally speaking, this script doesn't suppose to run under administrator but under a standard user privileges.

    I am using the following commands in order to open...
    See more | Go to post
    Last edited by eWish; Mar 14 '08, 01:40 AM. Reason: Please use code tags when posting code

  • idoha
    started a topic Managing multiple HTTP requests on same session
    in Perl

    Managing multiple HTTP requests on same session

    Hi,

    I am trying to write a script that simulate a nevigation on a particular web site.
    Before I am getting the page that contains the information I need, I have to go through a series of preceding pages.

    The page flow is as follow: login page -> page1 -> page2 ..etc.

    The problem is that once I am doing the login to the webside and requesting for the next page, the web server doesn't recongnize...
    See more | Go to post

  • idoha
    started a topic Sending SNMP Traps
    in Perl

    Sending SNMP Traps

    Hi All,
    I need to send SNMP traps of a very specific forma (version 2 snmp trap). The format is as following:

    07/31/2007 16:31:47 2 172.21.49.66 172.21.49.66 1.3.6.1.4.1.638 7.1.2.3.3.1.2.1 2
    1.3.6.1.2.1.1.3 .0=>363 days, 20 hours, 59 minutes, 56 seconds.
    1.3.6.1.6.3.1.1 .4.1.0=>.1.3.6. 1.4.1.6387.1.2. 3.3.1.2.12
    1.3.6.1.4.1.638 7.1.2.3.3.1.1.1 5=>Oshkosh 1
    1.3.6.1.4.1.638 7.1.2.3.3.1.1.3 =>703...
    See more | Go to post

  • idoha
    replied to Directory size on disk
    in Perl
    Hi,
    /n doesn't make any change.
    Stat doens't return any allocated blocks as it should.

    No cure for me.

    Any other suggestions ?

    Ido....
    See more | Go to post

    Leave a comment:


  • idoha
    replied to Directory size on disk
    in Perl
    Hi Kevin,
    This could be very helpful for me. I don't really understand how you run this verbose mode. Do you run it on on "dir" command (dir /V ?).
    I have been trying to do it and there ain't such an option in XP cmd (only in older version of windows such as 98 and 95).

    Any idea?

    Thanks,
    Ido....
    See more | Go to post

    Leave a comment:


  • idoha
    replied to Directory size on disk
    in Perl
    Hi Miller,
    This procedure works ok. The only problem is that it return the actual size of directory, not the total space it occupies on the disk....
    See more | Go to post

    Leave a comment:


  • idoha
    replied to Directory size on disk
    in Perl
    Hi Again,

    I have got 1 major constraint: I cannot use an external package such as File::size since I cannot demand from the customer I am doing it for to install that package either. Therefore, I am searching for a build-in method for that purpose.

    Thanks,
    Ido.
    See more | Go to post

    Leave a comment:


  • idoha
    replied to Directory size on disk
    in Perl
    Hello Jeff,
    Thanks for your reply.

    I used stat function which returns several parameters regarding a given file path, one of which holds the file size. But unfortunately this value is only the actual size of file, not the space it occupies on the disk. I need "size on disk" value.

    I have been trying to use WMI as well, but it doesn't contain any "size" values on directories, just on files...
    See more | Go to post

    Leave a comment:


  • idoha
    started a topic Directory size on disk
    in Perl

    Directory size on disk

    Hello,
    I wish to find out the total space (on disk) of a given directory \ folder on windows platform.
    Does anybody know how to do it ?

    Thanks,
    Ido.
    See more | Go to post
No activity results to display
Show More
Working...