Scripting IP Management

I am a scripting novice/intermediate, familiar with shell/bash (eg: sed, awk,) and learning Python, also have some readability of Perl.
Does anyone know of/use any good scripts that do any or all of below?
 - Discover/report subnetting structure (eg, 'show ip route <network> <mask> longer" -- parse, report)
 - Discover IP assignments/report utilization (eg, parse "show ip arp" -- and pair to the subnetting discovery)
I am looking for the logic to associate the 'show ip arp' output with a subnet, and report subnet usage utilization for reporting reasons.  If readily available, both the specific subnet and the larger aggregate - but I can extrapolate the latter.  Something quick and easy to report to ARIN, as opposed to buying a commercial product.  (context:  I inherited a network that uses spreadsheets for IP management, but has not been maintained and I'd like to audit).

I am a scripting novice/intermediate, familiar with shell/bash (eg: sed, awk,) and learning Python, also have some readability of Perl.
Does anyone know of/use any good scripts that do any or all of below?
 - Discover/report subnetting structure (eg, 'show ip route <network> <mask> longer" -- parse, report)
 - Discover IP assignments/report utilization (eg, parse "show ip arp" -- and pair to the subnetting discovery)
I am looking for the logic to associate the 'show ip arp' output with a subnet, and report subnet usage utilization for reporting reasons.  If readily available, both the specific subnet and the larger aggregate - but I can extrapolate the latter.  Something quick and easy to report to ARIN, as opposed to buying a commercial product.  (context:  I inherited a network that uses spreadsheets for IP management, but has not been maintained and I'd like to audit).

Similar Messages

  • Batch processing with Script Events Manager

    Hello all,
    I use the Script Events Manager to run a group of actions on a single file during the file open event.
    This workflow works well when dealing with a small quantity of files.
    Is there an efficient way to apply simultaneously a group of actions to folder of images?
    The PSCC Batch processor, Image Processor and Image Processor Pro only allow the use of one action at a time.
    I have try creating a combo action which includes a group of actions to run in the Batch Processor and Image Processor.
    When doing so I receive an error message from the Image processor and dialogs that from the Batch processor that suspend
    the program activity. I have had no luck with a combo droplet as well.  

    My system has 8 Gb of Ram and 4 processors. I doubt it's the system. I've had problems with CS Master Collection since day one. My main complaint is the ******* tabs and interface. Everything is so chunky. CS2 was smooth as butter. They keep making their products use more RAM and it's ridiculous. The tabs don't help, they only make life harder.
    Thanks for the suggestions, I was hoping not to have to reinstall PS, but looks like it's the only option.

  • Problem with Script Events Manager buttons not showing up

    Hi,
    First off let me say that the latest release of Adobe products is a steaming pile of @#$#$.
    Countless software issues, it's slow, buggy, you name it.
    That being said, has anyone had this problem and know how to fix it.
    My Script Events Manager is broken. Yes broken. The only buttons I see are "Done" and "Remove". There is no "Add" button so that I can actually add events. Someone please tell me this is user error and that I don't need to reinstall PS.

    My system has 8 Gb of Ram and 4 processors. I doubt it's the system. I've had problems with CS Master Collection since day one. My main complaint is the ******* tabs and interface. Everything is so chunky. CS2 was smooth as butter. They keep making their products use more RAM and it's ridiculous. The tabs don't help, they only make life harder.
    Thanks for the suggestions, I was hoping not to have to reinstall PS, but looks like it's the only option.

  • Script Events Manager like photoshop

    Is there any Script event manager available in illustrator as like in photoshop..?

    Script Event Manager is a Photoshop script that provides an UI for adding/removing app.notifiers. A quick look at the ESTK Object Viewer for Illustrator does not list notifiers.
    You may get a more imformed responce in the Illustrator scripting forum.

  • Script Events Manager settings don't stick

    I'm using Photoshop CS 3 version 10.0 and I can't seem to get Script Events Manager settings to work between launches of the program.
    I choose File > Scripts > Script Events Manager.
    In the dialog box, I select the Enable Events to Run Scripts/Actions checkbox.
    From the Photoshop Event menu I choose Open Document.
    I select the Action radio button, then choose the action I want.
    I click Add button.
    I close Script Events Manager dialog box.
    Everything works as intended, until I quit Photoshop and then launch it again, at which point the Script Events Manager settings have reverted to their default state, without my preferred Open action functioning any more.
    Is there any way to get my settings to become the new default so I don't have to repeat the above steps every time I launch Photoshop?

    Thanks, but I failed to mention I'm running Mac OS X 10.10.2 (Yosemite).
    It reminds me of failure to save preferences problems I've had in the past with other apps. Repairing prefs with Disk Utility doesn't help, BTW.
    Can anyone tell me the file name and location where this Script Events Manager setting is saved? Perhaps deleting that file and restarting will fix the issue…

  • Powershell Script - Convert Managed Metadata column Value to string

    HI,
    I have written a small PowerShell Script to pull records from a SP List and put them in a csv file. Here is the script:
    $MyWeb = Get-SPWeb "http://dev-apps:8800/applications/PA"
    $MyList = $MyWeb.Lists["Alist"]
    $exportlist = @()
    $Mylist.Items | foreach {
    $obj = New-Object PSObject -Property @{
    “PName” = $_["Port Name"]
    "AName" = $_["Agent Name"]
    "Address 1" = $_["Address 1"]
    "Address 2" = $_["Address 1"]
    "Address 3" = $_["Address 3"]
    "Address 4" = $_["Address 4"]
    $exportlist += $obj
    $exportlist | Export-Csv -path 'C:\Filename.csv'
    The script is running all right, the output file is also created, data is also correct for all columns but 1. This PName is a
    Managed metadata type column and the output values I am getting for this column are like this:
    "ERICA|a6d1e8fd-1f6b-4e09-9830-d21e35950881"
    "CLIVE|24dff17f-a1b5-4abe-ae86-57299e1e098b"
    viz. the ["Actual Value"|"its GUID"] (seems so). I do not want this GUID to be included in the result csv. Is there a way to remove it.
    P.S. Choice column values are being fetched just file.

    Try this (you'll need to add in your other properties)
    $items = New-Object psobject
    $items | Add-Member -MemberType NoteProperty -Name "AName" -value "" ;
    $items | Add-Member -MemberType NoteProperty -Name "PName" -value "" ;
    $items | Add-Member -MemberType NoteProperty -Name "Address1" -value "" ;
    $items | Add-Member -MemberType NoteProperty -Name "Address2" -value "" ;
    $items | Add-Member -MemberType NoteProperty -Name "Address3" -value "";
    $exportlist = @();
    $Mylist.Items | foreach {
    $pname = $_["PName"] -as [Microsoft.SharePoint.Taxonomy.TaxonomyFieldValue];
    $obj = $items | Select-Object *;
    $obj.AName = $_["AName"];
    $obj.PName = $pname.Label;
    $obj.Address1 = $_["Address 1"];
    $obj.Address2 = $_["Address 2"];
    $obj.Address3 = $_["Address 3"];
    $exportlist += $obj
    $exportlist | Export-Csv -path 'C:\AData.csv'
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Disaster Recovery Scripts for Managed Server MSI Startup

    I am trying to get some custom start scripts created for each of my managed servers in the event the admin console is down or server gets hosed. We use nodemanager to start the managed servers in a Windows environment. I have about 8 managed servers and they all use the same nodemanager classpath but all have different server start arguments (different memory settings, etc....) so I need to make different custom scripts for each.
    Verbose Garbage Collection to Determine Heap Size .....this thread by Jay has been very helpful but so far I am just getting kicked back to the syntax screen like something is wrong in my script. Attached is the script and the output when I run it. Any help would be appreciated...thanks.
    startManagedFPCE1.cmd contents
    java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=beaadmin -Dweblogic.management.password=beaadminxxx -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle\Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\deprecated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
    Results of running above script:
    C:\Oracle\Middleware\user_projects\domains\SIT11\servers\FPCE1>java.exe -Xms400m -Xmx400m -classpath $CLASSPATH -Dweblogic.Name=FPCE1 -Dbea.home="C:\Oracle\Middleware" -Dweblogic.management.username=b
    eaadmin -Dweblogic.management.password=beaadminsit11 -Dweblogic.management.server=http://sitportal1:8098 -Djava.library.path=c:\Oracle\Middleware\wlserver_10.3\server\bin -Dweblogic.ext.dirs=C:\Oracle
    \Middleware\patch_wls1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_wlp1032\profiles\default\sysext_manifest_classpath;C:\Oracle\Middleware\patch_oepe1111\profiles\default\
    sysext_manifest_classpath;C:\Oracle\Middleware\wlportal_10.3\p13n\lib\system;C:\Oracle\Middleware\wlportal_10.3\light-portal\lib\system;C:\Oracle\Middleware\wlportal_10.3\portal\lib\system;C:\Oracle\M
    iddleware\wlportal_10.3\info-mgmt\lib\system;C:\Oracle\Middleware\wlportal_10.3\analytics\lib\system;C:\Oracle\Middleware\wlportal_10.3\apps\lib\system;C:\Oracle\Middleware\wlportal_10.3\info-mgmt\dep
    recated\lib\system;C:\Oracle\Middleware\wlportal_10.3\content-mgmt\lib\system -Dweblogic.alternateTypesDirectory=C:\Oracle\Middleware\wlportal_10.3\portal\lib\security
    Usage: java [-options] class [args...]
    (to execute a class)
    or java [-options] -jar jarfile [args...]
    (to execute a jar file)
    where options include:
    -server to select the "server" VM
    -hotspot is a synonym for the "server" VM [deprecated]
    The default VM is server.
    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
    A ; separated list of directories, JAR archives,
    and ZIP archives to search for class files.
    -D<name>=<value>
    set a system property
    -verbose[:class|gc|jni]
    enable verbose output
    -version print product version and exit
    -version:<value>
    require the specified version to run
    -showversion print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
    include/exclude user private JREs in the version search
    -? -help print this help message
    -X print help on non-standard options

    "bharat nagwani" <[email protected]> wrote:
    >
    Hi,
    Configuration: Weblogic 8.1SP2 on Windows 2000, 1 admin server and 14
    managed
    servers
    whats the right way from these 2 scenarious to create a domain on managed
    server
    1. create domain on managed server using configuration wizard. Then point
    to this
    domain from administration server remote start tab(root directory). This
    is what
    we do so far.This is the best way to create managed servers for your domain.
    >
    2. Just enter user_projects/domains folder/$domain name$ in remote start
    tab(root
    directory)
    on admin server console and when you start the managed server from
    admin console
    the domain folder and files will be created.
    Yes, the managed server is started in this case at the root directory you specified.
    The difference is in the
    1. first case we see all scripts like startManagedWeblogic, setenv, boot.properties
    etc
    this may help(we still dont know) if one wants to bring up managed
    server
    manually using
    startManagedServer.bat without using node manager.Yes, that is correct. You will need to edit the startManagedServer.bat to include
    the admin server URL, username and paswword..
    >
    2. second case only 2-3 files get created like msi-config.xml and SerializedSystemIni.dat
    Basically first case is superset of second case.
    What is the experience of people in this regard?
    thanks much
    bharat

  • Oracle scripts to manage sql ext to Warehouse Facilities (Create Dimensions, Rollup)

    I'm running Oracle 8.0.5 Enterprise Edition on NT.
    I used the Oracle assistant to create a new database instance and
    i had noticed that sys tables and packages to manage sql dimension extension had been created.
    Subsequently I had to re-create the database (because i needed to
    modify the db-block size) but now i'm not able to find the Oracle
    Scripts that allow me to re-create the appropriate sys-user, tables and packages.
    I currecly run the buildall.sql script which run the catalog.sql, catproc.sql etc..
    Could anyone tell me which are the right script to run and where are they located?
    Thanks in advance,Imma

    (Running Win2K Pro, standalone PC 9201 patch2323002)
    Yes, I'm getting the same problem, except I get this error message :
    ORA-28575: unable to open RPC connection to external procedure agent
    Which apparently means I've got something wrong with my listener configuration and it can't find the external procedure. Seeing as I haven't configured the listener maybe this is the problem?!?!?!
    Have you had to configure your listener? If so what did you put in it?
    Robert

  • Login Scripts with managed computers

    I'm using workgroup manager with computer groups and I want to have a specific script running everytime people login into the client computers.
    The problem is : When i select the computer group or the computer itself in workgroup manager and then Preferences > Login > Scripts, i can't upload my script 'cause it's marked grey by the browsing window.
    I've checked my script, it's a shell script and it's executable but still...
    I've tried with an AppleScript but same story.
    How can i make a script compatible with workgroup manager ?

    Thanks for the hit, adding .hook extension make the script selectable from WGM, however nothing happens after login with one client computer.
    Is there anybody who actually succeeded to use the script option in WGM ?
    I want to mount a folder automaticaly after login in specific computers :
    So i wrote a shell script :
    makedir /Volumes/Directory
    mount_afp afp://192.168.220.1/Directory /Volumes/Directory
    Saved the script with the .hook extension, made it executable, checked it on the client computer : it works, changed com.apple.loginwindow.plist in the client computer but still nothing !
    I don't know what's wrong ?! I'm tired of trying, it's so difficult with OS X compared to Windows and bash script... I'm kind of giving up...
    OS X 10.5.1

  • Powershell Script to manage document library

    Hi,
    I would like to write a powershell script that will be run as a job in the task scheduler on a daily basis. The  idea is to delete documents or folders from a particular folder in the document library that are created 30 days ago.
    Can anyone help me with this script?

    Hi - I think you can perform this OOB using retention policy
    http://blogs.msdn.com/b/ecm/archive/2011/10/12/policy-and-retention-in-sharepoint-server-2010.aspx
    http://blogs.msdn.com/b/mvpawardprogram/archive/2011/10/03/applying-document-retention-in-sharepoint-2010.aspx
    -prs

  • Vbs script to manage aspect ratios in PowerPoint (16:9 vs. 4:3)

    Hello. Can someone help me with the following?
    I need a VBS script to make PowerPoint's default slide size to 16:9 from 4:3.
    Thank you for any help here.
    Jrene

    Hello. Can someone help me with the following?
    I need a VBS script to make PowerPoint's default slide size to 16:9 from 4:3.
    Try this Google query:
    PowerPoint aspect ratio vbscript

  • Tv-star.sh, a little script for managing tv.

    Hi altogether!
    I wanted a very small app to watch and record tv with my dvb-t stick, so I created tv-star.sh:
    #!/bin/bash
    # Befor you start, you need to edit the 2
    # variables SCANBASE and MOVIEFOLDER
    # This is the base-file for the frequency-scan.
    # Chose the one corresponding to your location.
    SCANBASE="/usr/share/dvb/dvb-t/de-Schleswig-Holstein"
    # Folder where the movies are stored.
    # IMPORTANT: Use the full path, don't use ~ for your home!
    # Example:
    # MOVIEFOLDER="/home/tux/tv/"
    MOVIEFOLDER=""
    echo -e "\n***********************************"
    echo "*** tv-star 0.5 ***"
    echo "*** by Thomas Schuetz ***"
    echo "***********************************"
    MAINLOOP=1
    if [ "$MOVIEFOLDER" == "" ]; then
    MAINLOOP=0
    echo -e "\nYou need to edit the variables SCANBASE and MOVIEFOLDER in the top of the script before you can use it.\n"
    fi
    while [ ${MAINLOOP} -gt 0 ]; do
    echo -e "\n"
    echo "1) Watch TV"
    echo "2) Record a movie"
    echo "3) Cancel the record of a movie"
    echo "4) Watch recorded movie"
    echo "5) Delete recorded movie"
    echo "8) Show informationen about tv-star.sh"
    echo "9) Create new channel.conf"
    echo "0) Quit"
    echo -e -n "\nYour choice: "
    read INPUT
    echo -e "\n"
    case $INPUT in
    1) echo "Please chose the station you want to watch:"
    NUMBER=0
    for LINE in `cat ~/.mplayer/channels.conf | sed s/:.*//`; do
    NUMBER=$((NUMBER+1))
    echo -n ${NUMBER}") "
    echo ${LINE};
    done
    echo -e -n "\nYour choice: "
    read STATION
    STATIONNAME=`tail -n +$STATION ~/.mplayer/channels.conf | head -n 1 | sed s/:.*//`
    mplayer dvb://${STATIONNAME}
    2) echo "Please chose the station where you want to record a movie:"
    NUMBER=0
    for LINE in `cat ~/.mplayer/channels.conf | sed s/:.*//`; do
    NUMBER=$((NUMBER+1))
    echo -n ${NUMBER}") "
    echo ${LINE};
    done
    echo -e -n "\nYour choice: "
    read STATION
    RECORDSTATION=`tail -n +${STATION} ~/.mplayer/channels.conf | head -n 1 | sed s/:.*//`
    echo -e -n "\nWhen do you want to start the record (Format: 20:15)? "
    read RECORDSTART
    echo -e -n "\nWhen do you want to end the record (Format: 22:00)? "
    read RECORDEND
    echo -e -n "\nHow should the file be named? "
    read RECORDFILE
    echo "mplayer -quiet dvb://${RECORDSTATION} -dumpstream -dumpfile ${MOVIEFOLDER}${RECORDFILE}" | at ${RECORDSTART}
    echo "killall mplayer" | at ${RECORDEND}
    echo
    3) echo "Available at-jobs:"
    atq
    echo "I will always cancel the start- and the end-job, please only enter the number of the start-job (the one with the lower number)!"
    echo -e -n "\nWhich job do you want to cancel (0 = none): "
    read JOB
    if [ ${JOB} -gt 0 ]; then
    atrm ${JOB}
    KILLJOB=$((${JOB}+1))
    atrm ${KILLJOB}
    fi
    4) echo "Recorded movies:"
    NUMBER=0
    for LINE in `ls ${MOVIEFOLDER}`; do
    NUMBER=$((NUMBER+1))
    echo -n ${NUMBER}") "
    echo ${LINE};
    done
    echo -e -n "\nWhich movie do you want to watch (0 = none): "
    read MOVIEFOLDERNUMBER
    NUMBER=0
    if [ ${MOVIEFOLDERNUMBER} -gt 0 ]; then
    for LINE in `ls ${MOVIEFOLDER}`; do
    NUMBER=$((NUMBER+1))
    if [ $((NUMBER)) == $((MOVIEFOLDERNUMBER)) ]; then
    MOVIEFOLDERNAME=${LINE}
    fi
    done
    mplayer ${MOVIEFOLDER}${MOVIEFOLDERNAME}
    fi
    5) echo "Recorded movies:"
    NUMBER=0
    for LINE in `ls ${MOVIEFOLDER}`; do
    NUMBER=$((NUMBER+1))
    echo -n ${NUMBER}") "
    echo ${LINE};
    done
    echo -e -n "\nWhich movie do you want to delet (0 = none): "
    read MOVIEFOLDERNUMBER
    NUMBER=0
    if [ ${MOVIEFOLDERNUMBER} -gt 0 ]; then
    for LINE in `ls ${MOVIEFOLDER}`; do
    NUMBER=$((NUMBER+1))
    if [ $((NUMBER)) == $((MOVIEFOLDERNUMBER)) ]; then
    MOVIEFOLDERNAME=${LINE}
    fi
    done
    rm -i ${MOVIEFOLDER}${MOVIEFOLDERNAME}
    fi
    8) echo "About tv-star.sh 0.5 by Thomas Schuetz, 2011-08-27:"
    echo "---------------------------------------------------"
    echo -n "There are great mediacenter-projects like MythTV, but they are too big for "
    echo -n "my simple needs. In fact, you only need one single line to record a movie, "
    echo -n "but I was too lazy to type the long line always by myself, so I created this "
    echo "little script and put everything in it, I need for handling tv."
    echo -n "The script itself is very simple, it only needs mplayer, the scan-command "
    echo -n "from the dvb-apps and some standard shell-commands. Before you really use it, "
    echo "you need to edit the variables SCANBASE and MOVIEFOLDER in the top of the script."
    9) echo -e "Creating a new channel.conf, please wait a while!\n"
    rm -f ~/.mplayer/channels.conf.old
    mv ~/.mplayer/channels.conf ~/.mplayer/channels.conf.old
    scan $SCANBASE | sed -e 's/\ /_/g' -e 's/\//_/g' -e 's/\*//' > ~/.mplayer/channels.conf
    0) echo -e "Thank you for using tv-star.sh!\n"
    MAINLOOP=0
    *) echo -e "Wrong input, please chose again!\n"
    esac
    done
    I am no programmer, so if you have any ideas how I can make the script better, please tell me!

    Some improvements:
    diff --git a/tv-star.sh b/tv-star.sh
    index a9b6666..3bfe603 100644
    --- a/tv-star.sh
    +++ b/tv-star.sh
    @@ -8,25 +8,16 @@
    SCANBASE="/usr/share/dvb/dvb-t/de-Schleswig-Holstein"
    # Folder where the movies are stored.
    -# IMPORTANT: Use the full path, don't use ~ for your home!
    -# Example:
    -# MOVIEFOLDER="/home/tux/tv/"
    -MOVIEFOLDER=""
    +MOVIEFOLDER=~/tv/
    +mkdir -p $MOVIEFOLDER
    -echo -e "\n***********************************"
    +echo
    +echo "***********************************"
    echo "*** tv-star 0.5 ***"
    echo "*** by Thomas Schuetz ***"
    echo "***********************************"
    -MAINLOOP=1
    -if [ "$MOVIEFOLDER" == "" ]; then
    - MAINLOOP=0
    - echo -e "\nYou need to edit the variables SCANBASE and MOVIEFOLDER in the top of the script before you can use it.\n"
    -fi
    -while [ ${MAINLOOP} -gt 0 ]; do
    +while :; do
    echo -e "\n"
    echo "1) Watch TV"
    echo "2) Record a movie"
    @@ -40,7 +31,7 @@ while [ ${MAINLOOP} -gt 0 ]; do
    read INPUT
    echo -e "\n"
    case $INPUT in
    - 1) echo "Please chose the station you want to watch:"
    + 1) echo "Please choose the station you want to watch:"
    NUMBER=0
    for LINE in `cat ~/.mplayer/channels.conf | sed s/:.*//`; do
    NUMBER=$((NUMBER+1))
    @@ -139,9 +130,9 @@ while [ ${MAINLOOP} -gt 0 ]; do
    scan $SCANBASE | sed -e 's/\ /_/g' -e 's/\//_/g' -e 's/\*//' > ~/.mplayer/channels.conf
    0) echo -e "Thank you for using tv-star.sh!\n"
    - MAINLOOP=0
    + break
    *) echo -e "Wrong input, please chose again!\n"
    esac
    Last edited by JohannesSM64 (2011-08-27 08:30:45)

  • Useful Script to manage saved credentials on windows XP

    Hello,
    I have the following issue,.
    In my environment it is the necessity to remove cached credentials from stored user names and passwords in windows XP OS. There is a hassle to do this manually on all XP computers. 
    To Automate this process I need a right and useful script to run on all machines to delete the saved credentials.  
    CMDKEY.exe is the exact solution for me but it don't work on Windows XP machines.
    Can you suggest me any other - more helpful script supported for Windows XP..? 
    For example: to delete cached credentials..
    Thanks in advance,

    I agree with Bill, but you can use the WS2003 version of cmdkey on XP if you absolutely have to.
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Scripts to manage users

    Hi friends, I hope that can help me with three questions:<br>
    <ul>
    <li>How do I know wich privileges have a user/role?</li>
    <li>How do I limit resources for some user/role?</li>
    <li>How do I know the "query" or command used by some User in the database (but the user can be an application)?</li>
    </ul>
    Thanks.

    3. Using FGAC??
    SELECT
               S.SID
              ,S.SERIAL#
              ,S.AUDSID
              ,S.STATUS
              ,S.USERNAME
              ,S.OSUSER
              ,DECODE(S.COMMAND, 0, 'No command'
                   ,2, 'INSERT'
                   ,3, 'SELECT'
                   ,6, 'UPDATE'
                   ,7, 'DELETE'
                   ,26, 'LOCK TABLE'
                   ,27, 'NO OPERATION'
                   , 'OTHER') COMMAND
              ,T.SQL_TEXT
         FROM
               V$SESSION S
              ,V$SQL T
         WHERE T.ADDRESS = S.SQL_ADDRESS
         ORDER BY S.STATUS DESC, S.SID
         ;

  • Pkgman - a bash script for local package and PKGBUILD management

    hi all,
    here is a script which manages a local repository and lets you edit
    PKGBUILDs and other related files, automatically generates checksums,
    build packages, add them to your local repo and so on.
    it also has AUR support for submitting tarballs, leaving comments, etc.
    get it from here:
    http://sourceforge.net/projects/pkgman/
    and AUR package:
    http://aur.archlinux.org/packages.php?ID=17100
    you need abs, curl and pacman and optionally namcap and desktop-file-utils.
    RTFM online:
    http://sourceforge.net/apps/mediawiki/p … n_man_page
    first of all copy the pkgman.conf and AUR.conf files from /usr/share/pkgman to ~/.config/pkgman/  or ${XDG_CONFIG_HOME}/pkgman - if ${XDG_CONFIG_HOME} is set,
    edit these two files and then run
    pkgman --runmefirst
    pkgman doesn´t install anything. if you want it just builds the package and moves it to your local repository. install it then with pacman.
    it also has no dependency handling. there are many other tools which provide this.
    the main intention was to keep track of package versions, different PKGBUILD versions and own AUR submitted tarballs; also to keep a clean local repository and clean build directories.
    pkgman is stable now. i´m using it for months without any issues.
    however, if there are problems or feedback please post them here.
    vlad
    changelog:
    version 2.4:
           *pkgman now respects the PKGDEST and SRCDEST variables from makepkg.conf. (though it still moves the src.tar.gz and .pkg.tar.gz to package backup directory).
    version 2.5:
           *pkgman uses PKGDEST if SRCDEST not set in makepkg.conf.
    version 2.6 -> r26:
           *changed version system: version 2.6 is now r26!
           *minor changes: > pkgman uses now the $SHELL variable.
                                    > new and more comprehensible manpage description (thanks to bender02)
    version r27:
           *changed SRCDEST since it's only a cache dir. all files (pkg.tar.gz and src.tar.gz) go to PKGDEST.
    version r28:
           *added new variable ShellCommand to pkgman.conf. Default is $SHELL.
           *One might use an external application (like screen or xterm) to switch to build directory and edit files simultaneously.
    version r30:
           *minor changes. nothing crucial
    r32: *OverwriteExistingPackage isn't used anymore. one can delete it from ~/.config/pkgman/pkgman.conf.
           *minor changes
    version r33:
           *"-l|--list" also shows installed package version and available ABS/AUR PKGBUILD version for given package.
           *"-a|--abs" can now also be used with other options (like "-e")
    r39: * when backing up src.tarballs it asks whether to backup the source file or not
           * more detailed "--list" option - also shows if package is installed or not and available ABS/AUR version
           * added prompt to clean up directory after makepkg
           * when checking pkg.tar.gz also possibility to check for conflicts with files of already installed packages
           * use $PAGER instead of less
           * --help directly shows the manpage
           * --shorthelp shows a brief usage overview
           * added a custom prompt, but only when using bash (is somehow experimental - works fine here for me)
           * minor internal changes
           * pkgman also reads ~/.aurvote file for getting aur name and password. if one already uses aurvote then there is no need for the
             ~/.config/pkgman/AUR.conf file.
    r40: * new manual page & rewrite of usage function
           * both option "--flush" and "--flushall" were omitted in favor of the more versatile "--cleanup" option
           * pkgman <packagename> checks now if <packagename> is owned by user
           * backup option after each editing
           * added license
           * minor internal changes
    r41: * just small bug fixes, nothing crucial.
    r42: * more bugs fixed.
    r45: * new options added:
              >   --listversions: list local and available versions of installed packages from LocalPackages directory
              >  --getownpackages: synchronize local own packages with AUR
           * added new variable in pkgman.conf:
              > ListOutputInPager: output of, for example, "--list" or "--own" is piped into $PAGER
           * added a new optional dependency "desktop-file-utils" for validating desktop entry files
           * also supports now auto-generation of sha sums not only md5
           * internal fixes due to AUR interface changes:
              > use of json interface
              > correct parsing of package category
           * added 2 proto files (located under /usr/share/pacman):
              >  proto.desktop: a template for *.desktop files
              > PKGBUILD-lib32.proto: a template for lib32 packages for x86_64
           * some code changes and fixes
    r46: * added new option to pkgman.conf (AutoGenerateSums).
             > if AutoGenerateSums=no then pkgman asks whether to generate checksums or not.
             > if set to yes it behaves like in former versions.
    r52: * "--getownpackages" with more than 100 packages works again
           * added new option "--cachecopy":
              For each package in CacheCopyList (new variable in pkgman.conf) get existing package from pacman's cache directory - if
              CopyPkgFromCache (new variable in pkgman.conf) is set to yes - and/or create a source tarball of PKGBUILD and related files from ABS -
              if CopySrcFromABS (new variable in pkgman.conf) is set to yes - and copy them to package backup directory.
           * added new variables to pkgman.conf:
               > "CacheCopyList=file" - batch backup file, one package per line - default location is "$HOME/.config/pkgman/package.list".
               > "CopySrcFromABS=[yes|no]"
               > "CopyPkgFromCache=[yes|no]"
           * some bugfixes
           * docs completed
           * CacheCopyList should look like
    package1
    package2
    #this is a comment
    ! this too
    package3
    !package4
    r54: * renamed "--listversions" option to "--diffversions". makes more sense!
              from the man page:
                  pkgman --diffversions
                  Show differing ABS/AUR versions of installed packages from LocalPackages.
    r55: * minor changes.
    r57: * testing release
           * added a new option "--rollback":
               "pkgman <packagename> --rollback" - checks  http://arm.kh.nu for available package versions,
                                                          lets you choose one, fetches the package and
                                                          moves it to the <packagename> backup directory (if "--repoadd" is used).
    r59: * stable release
           * new option "--rollback" (see r57):
                   it checks http://arm.kh.nu (Arch Rollback Machine) for available package versions,
                   downloads chosen file and moves it to local repository (if "-r|--repoadd"  is used).
            * posting files/comments/etc to AUR should work now again.
    r65: *stable release
           * new option "-M,--meta" to create metapackages and add them and their dependencies to local repository.
              it searches for deps inside the backup directories, pacman's cache and if the packages are not available, it tries to fetch the missing
              dependencies from the Arch Rollback Machine site (http://arm.kh.nu).
    r66: * minor fixes
    r68: * some bugfixes
           * "--repoadd" and "--Reporemove" now accurately removes old packages from LocalRepository
    r69: * small bugfixes when listing packages with similar names
           * curl retries now 5 times if connection is not established
    r75: * "--cachecopy" does not try to dl sourcefiles when backing up ABS PKGBUILDs
           * some work on package splitting
           * further internal changes
    r76: * minor mistakes with "ln" purged
    r79: * mostly small changes
           * "--cleanup" now also removes uninstalled packages from LocalRepository
    r81 & r80: * added AUR v1.6.0 support (use more json)
                    * small ARM changes ("--rollback")
    r85:
          * pkgman supports pkg.tar.xz packages
          * some code rewrite, bugs purged (hopefully)
    r113:
          * pkgman now supports building split packages through makepkg.
             If you already use pkgman you need to rerun "pkgman --runmefirst" after updating.
          * new  "-t,--template" option ("pkgman <packagename> --template <alt. packagename> [--pkgbuildversion <version>] [options]").
             Useful to create a new PKGBUILD and use an existing one as a template.
          * new option: "--conf /path/to/alternate/conf/file" - Specify another configuration file.
          * pkgman now uses ${XDG_CONFIG_HOME}/pkgman or $HOME/.config/pkgman - if first not set - as the default location for its conf files.
    r116:
          * check inet conection when submitting src tarballs to AUR
          * some bugs
          * updated manpage on sf
    For further details please read the manual page.
    Last edited by DonVla (2010-04-28 11:56:59)

    I'm having some troubles with it (perhaps missing dependencies, and forgotten hardcoded dirs?):
    jan@aconcagua 8:20PM ~ % pkgman --runmefirst
    /usr/bin/pkgman: line 77: /home/jan/apps/skripte/archscripts/pkgman/share/pkgman/color.bash: No such file or directory
    /usr/bin/pkgman: line 1293: initcolor: command not found
    /usr/bin/pkgman: line 312: highlight: command not found
    /usr/bin/pkgman: line 312: error: command not found
    /usr/bin/pkgman: line 313: highlight: command not found
    /usr/bin/pkgman: line 313: error: command not found
    /usr/bin/pkgman: line 314: highlight: command not found
    /usr/bin/pkgman: line 314: error: command not found
    /usr/bin/pkgman: line 315: highlight: command not found
    /usr/bin/pkgman: line 315: error: command not found
    /usr/bin/pkgman: line 317: error: command not found
    /usr/bin/pkgman: line 318: error: command not found
    /usr/bin/pkgman: line 321: highlight: command not found
    /usr/bin/pkgman: line 321: msg: command not found
    /usr/bin/pkgman: line 329: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    touch: cannot touch `/bin/.pkgman.registered': Permission denied
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 332: list: command not found
    /usr/bin/pkgman: line 337: msg: command not found
    curl: option --output: requires parameter
    curl: try 'curl --help' or 'curl --manual' for more information
    ^C/usr/bin/pkgman: line 209: cleanoutput: command not found
    /usr/bin/pkgman: line 209: cleanoutput: command not found
    (I terminated with ctrl-c).
    EDIT: errors resolved by correcting the path $HOME/apps/skripte/archscripts/pkgman/share/pkgman to /usr/share/pkgman in the pkgman itself.
    Last edited by bender02 (2008-05-23 01:28:58)

Maybe you are looking for

  • File transport problem in XI 3.0

    Hi, I am facing an issue in transporting XI objects(JAVA component). When I am using the transport wizard for Export design or configuration objects it's showing me the below error "Error during Export The System can't find the path specified". Expor

  • Why is my adobe photoshop trying to crash when i use the puppet warp tool?

    Every time i go to use the puppet warp tool i need to finish my assignment, photoshop says it is trying to fix the problem and then says it cant fix it and shuts the whole program down. And would like to know why is my adobe photoshop trying to crash

  • Crystal Reports version 13 managed api's run slower than native version 11

    Hello, I am a senior engineer, working in a project of porting client code written in C++ using Crystal 11. It uses the native COM api like shown approximately in the following code fragment:- IApplicationPtr pApplication; pApplication.CreateInstance

  • How to compress FM database

    Hello How to compress FM database. FM 4.2(7b) is used with Postgres, and the database is currently at 11.2 gigs. Is it true that there is a vacuum command that can be run against SQL dbs.

  • Body.prependAsync adds some random signs in Outlook 2013

    Hi When I use  Office.cast.item.toItemCompose(Office.context.mailbox.item).body.prependAsync('something something something'), coercionType: Office.CoercionType.Html in OWA everything works fine, but I found something interesting in Outlook 2013: It