How to list all active logins or based on WWN's

What are commands to list active logins, based on WWN's, in this way, I can find if these WWN are zoned.
Thanks you!

Hello,
You can use this commands to see who is logged in the fabric and see the zone configuration.
show flogi database
show fcns database
show zone active
show run zone
The recommendation is to use the wwpns to configure the zone. You can also create device-alias to simplified the process.
This guide can help you with the commands:
http://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus5000/sw/san_switching/b_Cisco_Nexus_5000_Series_NX-OS_SAN_Switching_Configuration_Guide/Cisco_Nexus_5000_Series_NX-OS_SAN_Switching_Configuration_Guide_chapter9.html

Similar Messages

  • List all active login sessions IDs

    Hi,
    I want to enumrate all active login sessions for session IDs. I found some api SessionGetInfo which gives current user
    session ID. and getutmpxent which gives process id of (as i understand id of process creating session) all sessions. I
    want to map pid to session id. or is there any other way to list the session IDs of all logged in users.
    Thanks.

    Hi Nagendra,
    You can get the informamtion through one more option also. In case of function module you need to execute the module again and again for each user or may be need to write a report. I would like to suggest you an alternative. That is making use of queries.
    1. Go to transaction SQVI.
    2. In the input field Quick View give the any name for query for example Z_EMAIL_ADD.
    3. Choose create option. In the resulting pop up give description in Title field. In data source choose TABLE JOIN. Select Basis mode.
    4. In the next screen choose INSERT TABLE pushbutton and in the pop up give USR21. Then again choose INSERT TABLE pushbutton and this time give ADR6.
    5. Now go back using back arrow or F3.
    6. Now in the new screen you will be under the tab strip List fld select.. From that entries under available filed (on right hand side) select User name in user master record and the first entry for Internet mail (SMTP) address. Now using single arrow pushbutton poitning towards left move these fields to tabstrip List fld select.
    7. Now go to tabstrip selection filed. As done in step 6 move User name in user master record under it.
    8. Save the changes and go back. A pop up will come asking you to save quick view Z_EMAIL_ADD. Choose yes.
    9. Now execute the query. In the input field you can give one user or multiple users at a given time.
    Regards,
    Rajesh

  • How to list all active local ports where a server/services is listening?

    How can I list all local ports where a local server or services is listening?
    The listing should contain the path and program name of the listening server/service.
    So I need something like:
    port=22 /lib/svc/method/sshd
    port=25 /bin/emailprgm
    port=1049 /ust/local/bin/myserver
    How can I do this?

    lsof (compile, sunfreeware.com, blaswave)
    it wont show full path i think (man lsof for more) however it gives pids/ports/exe name, so you could take that and script it or do something with the output.

  • Sunone Messaging Server 6.1--How to list all mail user's last login time

    hi,i want to know how to list all the mail user's last login time.
    There are more than 100000 mailbox accounts on our mail server,
    i want to know which account is not used for more than 2 or 3 years.
    thanks.

    http://wikis.sun.com/display/CommSuite/imsconnutil
    Somchai.

  • How to list all properties in the default Toolkit

    I would like to know what kinds of properties are stored in the default Toolkit (Toolkit.getDefaultToolkit()). I don't know how to list all of them. Toolkit class has a method getProperty(String key, String defaultValue), but without knowing a list of valid keys, this method is useless.
    Any idea would be appreciated.

    Here is a little utility that I wrote to display all the UIDefaults that are returned from UIManager.getDefaults(). Perhaps this is what you are looking for?
    import javax.swing.*;
    import java.util.*;
    public class DefaultsTable extends JTable {
        public static void main(String args[]) {
            JTable t = new DefaultsTable();
        public DefaultsTable() {
            super();
            setModel(new MyTableModel());
            JFrame jf = new JFrame("UI Defaults");
            jf.addWindowListener(new WindowCloser());
            jf.getContentPane().add(new JScrollPane(this));
            jf.pack();
            jf.show();
        class MyTableModel extends javax.swing.table.AbstractTableModel {
            UIDefaults uid;
            Vector keys;
            public MyTableModel() {
                uid = UIManager.getDefaults();
                keys = new Vector();
                for (Enumeration e=uid.keys() ; e.hasMoreElements(); ) {
                    Object o = e.nextElement();
                    if (o instanceof String) {
                        keys.add(o);
                Collections.sort(keys);
            public int getRowCount() {
                return keys.size();
            public int getColumnCount() {
                return 2;
            public String getColumnName(int column) {
                if (column == 0) {
                    return "KEY";
                } else {
                    return "VALUE";
            public Object getValueAt(int row, int column) {
                Object key = keys.get(row);
                if (column == 0) {
                    return key;
                } else {
                    return uid.get(key);
        class WindowCloser extends java.awt.event.WindowAdapter {
            public void windowClosing(java.awt.event.WindowEvent we) {
                System.exit(0);
    }

  • How to list the active savepoints in a session?

    How to list the active savepoints in a session?

    SR 3-4535479801: How to list the active savepoints in a session?
    Oracle Support - September 19, 2011 7:12:50 AM GMT-07:00 [ODM Answer]
    === ODM Answer ===
    Hello,
    That is the only way and it is also described in:
    How To Find Out The Savepoint For Current Process (Doc ID 108611.1)
    One thing to be aware in lower version is the dump if no savepoints are declared:
    ALTER SESSION SET EVENTS 'IMMEDIATE TRACE NAME SAVEPOINTS LEVEL 1' Raises ORA-03113/ORA-07445[SIGSEGV]/[STRLEN] Errors (Doc ID 342484.1)
    Best regards,
    George
    Oracle Support Database TEAM
    Oracle Support - September 19, 2011 6:36:39 AM GMT-07:00 [ODM Question]
    === ODM Question ===
    How to list the active savepoints in a session?
    Is there another way than the following as referenced in the Oracle forums: Re: How to list the active savepoints in a session? ?
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    - September 17, 2011 5:12:53 PM GMT-07:00 [Customer Problem Description]
    Problem Description: How to list the active savepoints in a session?
    Is there another way than
    "alter session set events 'immediate trace name savepoints level 1';"
    A trace file is generated in the user_dump_directory.
    Re: How to list the active savepoints in a session?

  • How to list all the rows from the table VBAK

    Friends ,
    How to list all the rows from the table VBAK.select query and the output list is appreciated.

    Hi,
    IF you want to select all the rows for VBAK-
    Write-
    Data:itab type table of VBAK,
           wa like line of itab.
    SELECT * FROM VBAK into table itab.
    Itab is the internal table with type VBAK.
    Loop at itab into wa.
    Write: wa-field1,
    endloop.

  • How to list all files in a given directory?

    How to list all the files in a given directory?

    A possible recursive algorithm for printing all the files in a directory and its subdirectories is:
    Print the name of the directory
    for each file in the directory:
    if the file is a directory:
    Print its contents recursively
    else
    Print the name of the file.
    Directory "games"
    blackbox
    Directory "CardGames"
    cribbage
    euchre
    tetris
    The Solution
    This program lists the contents of a directory specified by
    the user. The contents of subdirectories are also listed,
    up to any level of nesting. Indentation is used to show
    the level of nesting.
    The user is asked to type in a directory name.
    If the name entered by the user is not a directory, a
    message is printed and the program ends.
    import java.io.*;
    public class RecursiveDirectoryList {
    public static void main(String[] args) {
    String directoryName; // Directory name entered by the user.
    File directory; // File object referring to the directory.
    TextIO.put("Enter a directory name: ");
    directoryName = TextIO.getln().trim();
    directory = new File(directoryName);
    if (directory.isDirectory() == false) {
    // Program needs a directory name. Print an error message.
    if (directory.exists() == false)
    TextIO.putln("There is no such directory!");
    else
    TextIO.putln("That file is not a directory.");
    else {
    // List the contents of directory, with no indentation
    // at the top level.
    listContents( directory, "" );
    } // end main()
    static void listContents(File dir, String indent) {
    // A recursive subroutine that lists the contents of
    // the directory dir, including the contents of its
    // subdirectories to any level of nesting. It is assumed
    // that dir is in fact a directory. The indent parameter
    // is a string of blanks that is prepended to each item in
    // the listing. It grows in length with each increase in
    // the level of directory nesting.
    String[] files; // List of names of files in the directory.
    TextIO.putln(indent + "Directory \"" + dir.getName() + "\":");
    indent += " "; // Increase the indentation for listing the contents.
    files = dir.list();
    for (int i = 0; i < files.length; i++) {
    // If the file is a directory, list its contents
    // recursively. Otherwise, just print its name.
    File f = new File(dir, files);
    if (f.isDirectory())
    listContents(f, indent);
    else
    TextIO.putln(indent + files[i]);
    } // end listContents()
    } // end class RecursiveDirectoryList
    Cheers,
    Kosh!

  • Urgent: How to list all alias for a server throw DNS query?

    Hi
    Is there anyone know how to list all alias for a server by asking the network DNS. Is that possible?
    It doesn't work with InetAddress it return a single result.
    Best regard

    InetAddress will not get you the aliases, but you can certainly find all the different IP addresses for a specific host name using the getAllByName() method.
    You won't be able to get the aliases since those IP addresses (assuming there are more than 1) will all be cached as mapping to the name you passed to the getAllByName() method and you can't clear the map cache until the JVM exits.
    So your best hope is to get a list of IP's and either exit your app and restart with a new mode, or save them to a file for another app to read.

  • List all active change documents

    Is there a way to list all ACTIVE change documents? In other words - I only want ot know which change documents are being used in the system...
    Thanks

    Thanks Anji - Seems there is no place to show if a change document is active, but I was being silly since if a change document is not active or being used, it will not appear in CDHDR / CDPOS!
    A useful pool table is TCDOB - It lists all change documents with properties like which tables they monitor etc...

  • How to list all the Fields for an Active Directory Object

    How do I list all the fields that an Active Directory object contains? I know the most common ones, but would like to enumerate through all the fields and obtain the type of fields and their values...

    Here is my complete code - I only put snippets so that the post was not too huge...
    Option Explicit
    Const ADS_SCOPE_SUBTREE = 2
    Const ForReading = 1, ForWriting = 2, ForAppending = 8
    Dim adoCommand, adoConnection, adoRecordSet
    Dim dtmDate, dtmValue
    Dim j
    Dim lngBias, lngBiasKey, lngHigh, lngLow, lngValue
    Dim objADObject, objClass, objDate, objFile, objFSO, objRootDSE, objShell
    Dim pathToScript
    Dim strAdsPath, strConfig, strDNSDomain, strHex, strItem, strProperty, strValue
    Dim strFilter, strQuery
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objShell = CreateObject("Wscript.Shell")
    pathToScript = objShell.CurrentDirectory
    Set objFile = objFSO.CreateTextFile(pathToScript & "\TestAD.csv")
    ' Determine Time Zone bias in local registry.
    ' This bias changes with Daylight Savings Time.
    lngBiasKey = objShell.RegRead("HKLM\System\CurrentControlSet\Control\TimeZoneInformation\ActiveTimeBias")
    If (UCase(TypeName(lngBiasKey)) = "LONG") Then
    lngBias = lngBiasKey
    ElseIf (UCase(TypeName(lngBiasKey)) = "VARIANT()") Then
    lngBias = 0
    For j = 0 To UBound(lngBiasKey)
    lngBias = lngBias + (lngBiasKey(j) * 256^j)
    Next
    End If
    ' Determine configuration context and DNS domain from RootDSE object.
    Set objRootDSE = GetObject("LDAP://RootDSE")
    strConfig = objRootDSE.Get("configurationNamingContext")
    strDNSDomain = objRootDSE.Get("defaultNamingContext")
    Set adoCommand = CreateObject("ADODB.Command")
    Set adoConnection = CreateObject("ADODB.Connection")
    adoConnection.Provider = "ADsDSOObject"
    adoConnection.Open "Active Directory Provider"
    adoCommand.ActiveConnection = adoConnection
    adoCommand.CommandText = "SELECT * FROM 'LDAP://" & strDNSDomain & "'WHERE objectClass=user'"
    adoCommand.Properties("Page Size") = 1000
    adoCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
    Set adoRecordSet = adoCommand.Execute
    Set adoRecordSet = adoCommand.Execute
    adoRecordSet.MoveFirst
    Do Until adoRecordSet.EOF
    strAdsPath = adoRecordSet.Fields("ADsPath").Value
    ' Bind to Active Directory object specified.
    Set objADObject = GetObject(strAdsPath)
    Set objClass = GetObject(objADObject.Schema)
    ' Write which object is grabbed from AD
    objFile.Write(Replace(strAdsPath, ",", ";;;"))
    ' Enumerate mandatory object properties.
    For Each strProperty In objClass.MandatoryProperties
    On Error Resume Next
    strValue = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    On Error GoTo 0
    If (TypeName(strValue) = "String") Or (TypeName(strValue) = "Long") Or (TypeName(strValue) = "Date") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Byte()") Then
    strHex = OctetToHexStr(strValue)
    objFile.Write("," & strProperty & "|||" & CStr(strHex))
    ElseIf (TypeName(strValue) = "Variant()") Then
    For Each strItem In strValue
    On Error Resume Next
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
    If (Err.Number <> 0) Then
    On Error GoTo 0
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    On Error GoTo 0
    Next
    ElseIf (TypeName(strValue) = "Boolean") Then
    objFile.Write("," & strProperty & "|||" & CBool(strValue))
    Else
    objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
    End If
    Else
    Err.Clear
    sColl = objADObject.GetEx(strProperty)
    If (Err.Number = 0) Then
    For Each strItem In sColl
    objFile.Write("," & strProperty & "|||" & CStr(strItem))
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Next
    On Error GoTo 0
    Else
    Err.Clear
    Set objDate = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    lngHigh = objDate.HighPart
    If (Err.Number = 0) Then
    lngLow = objDate.LowPart
    If (lngLow < 0) Then
    lngHigh = lngHigh + 1
    End If
    lngValue = (lngHigh * (2 ^ 32)) + lngLow
    If (lngValue > 120000000000000000) Then
    dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
    On Error Resume Next
    dtmDate = CDate(dtmValue)
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||<Never>")
    Else
    objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
    End If
    Else
    objFile.Write("," & strProperty & "|||" & FormatNumber(lngValue, 0))
    End If
    Else
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Else
    On Error GoTo 0
    objFile.Write("," & strProperty)
    End If
    On Error GoTo 0
    End If
    End If
    Next
    ' Enumerate optional object properties.
    For Each strProperty In objClass.OptionalProperties
    On Error Resume Next
    strValue = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    On Error GoTo 0
    If (TypeName(strValue) = "String") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Long") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Date") Then
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strValue), ",", ";;;"))
    ElseIf (TypeName(strValue) = "Byte()") Then
    strHex = OctetToHexStr(strValue)
    objFile.Write("," & strProperty & "|||" & CStr(strHex))
    ElseIf (TypeName(strValue) = "Variant()") Then
    For Each strItem In strValue
    On Error Resume Next
    objFile.Write("," & strProperty & "|||" & Replace(CStr(strItem), ",", ";;;"))
    If (Err.Number <> 0) Then
    On Error GoTo 0
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    On Error GoTo 0
    Next
    ElseIf (TypeName(strValue) = "Boolean") Then
    objFile.Write("," & strProperty & "|||" & CBool(strValue))
    Else
    objFile.Write("," & strProperty & "|||Type:" & TypeName(strValue))
    End If
    Else
    Err.Clear
    sColl = objADObject.GetEx(strProperty)
    If (Err.Number = 0) Then
    For Each strItem In sColl
    objFile.Write("," & strProperty & "|||" & CStr(strItem))
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Next
    On Error GoTo 0
    Else
    Err.Clear
    Set objDate = objADObject.Get(strProperty)
    If (Err.Number = 0) Then
    lngHigh = objDate.HighPart
    If (Err.Number = 0) Then
    lngLow = objDate.LowPart
    If (lngLow < 0) Then
    lngHigh = lngHigh + 1
    End If
    lngValue = (lngHigh * (2 ^ 32)) + lngLow
    If (lngValue > 120000000000000000) Then
    dtmValue = #1/1/1601# + (lngValue / 600000000 - lngBias) / 1440
    On Error Resume Next
    dtmDate = CDate(dtmValue)
    If (Err.Number <> 0) Then
    objFile.Write("," & strProperty & "|||<Never>")
    Else
    objFile.Write("," & strProperty & "|||" & CStr(dtmDate))
    End If
    Else
    objFile.Write("," & strProperty & "|||" & lngValue)
    End If
    Else
    objFile.Write("," & strProperty & "|||Value cannot be displayed")
    End If
    Else
    On Error GoTo 0
    objFile.Write("," & strProperty & "||| ")
    End If
    On Error GoTo 0
    End If
    End If
    Next
    objFile.WriteLine("")
    adoRecordSet.MoveNext
    Loop
    objFile.Close
    ' Function to convert OctetString (Byte Array) to a hex string.
    Function OctetToHexStr(arrbytOctet)
    Dim k
    OctetToHexStr = ""
    For k = 1 To Lenb(arrbytOctet)
    OctetToHexStr = OctetToHexStr _
    & Right("0" & Hex(Ascb(Midb(arrbytOctet, k, 1))), 2)
    Next
    End Function
    I have been able to obtain all the Computer, Contact, Group and OU objects without issue with this code...

  • How to list all reports created in webi - export to excel or print

    We are using BO 3.1, is there a way to list all reports and print or export the information to excel?  instead of navigating through each folder structure.
    John

    Hi,
    If you have auditing enabled in the environment, please login to InfoView and select "Folder --> Auditor --> en --> Document Information Detail' refresh this report it will give you the details you are looking for.
    Then click on export into excel option.
    Thanks,
    aKs

  • How to get all active session id's

    hai,
    i am new to servlet. i am tring to find out all active session id's for security perpose.
    and also i want to deactive a perticular session using that session id.
    but i don't know how to do. please help me.
    thanks in advance.

    Well to me.. I wud like to write a Listener class implementing HttpSessionListener in the following way....
    import javax.servlet.http.HttpSession;
    import javax.servlet.http.HttpSessionListener;
    import javax.servlet.http.HttpSessionEvent;
    import java.util.HashMap;
    public class SessionHandler implements HttpSessionListener{
    public static HashMap<String,HttpSession> SessionsMap = new HashMap<String,HttpSession>();
    public void sessionCreated(HttpSessionEvent se) {
    SessionsMap.put(se.getSession().getId(),se.getSession());
    public void sessionDestroyed(HttpSessionEvent se) {
    SessionMap.remove(se.getSession().getId());
    public static invalidateSession(String SessionId){
    HttpSession session =  SessionsMap.get(SessionId);
    SessionMap.remove(SessionId);
    session.invalidate();
    }Note:I'm assuming tht you are running the code on Jdk/jre 1.5+
    However, i think its more of core way of implementing this specially usage of static members howevr @ the given situation can very well cater your resources.added to it you add ActivationListener depending on your requirement.
    Hope this might help :)
    REGARDS,
    RaHuL

  • How to list all documents that has linked a image file?

    Hi everyone,
    I'd like to know if there's a way to find all linked file to a file: i have a logo image that a lot of inDesign files have linked to it and i'd like to find all those inDesign files.
    I know that Bridge CS6 can list all linked files of a .indd file but i'd like the opposite
    Regards,
    Snowblood13x

    You might be able to do it via scripting. If you have to search an entire volume it would be impractical, but something like this AppleScript would open all of the ID files inside of a chosen folder and its sub folders. Once the ID file is open it could check for a specific link and if it exists leave the file open otherwise close:
    global mylinkname
    --change YourLinkNameHere to the logo link's name
    set mylinkname to "YourLinkNameHere"
    tell application "Finder"
        activate
        set the thisFolder to (choose folder with prompt "Choose a folder. The extension of all files inside will be hidden.")
        my ProcessFolder(thisFolder)
        tell application "Adobe InDesign CS6"
            activate
            display dialog "Done"
        end tell
    end tell
    on ProcessFolder(thisFolder)
        set theseItems to list folder thisFolder without invisibles
        repeat with i from 1 to count of theseItems
            set thisItem to alias ((thisFolder as text) & (item i of theseItems))
            set the iteminfo to info for thisItem
            if folder of the iteminfo is true then
                ProcessFolder(thisItem)
            else
                ProcessItem(thisItem)
            end if
        end repeat
    end ProcessFolder
    on ProcessItem(thisalias)
        tell application "Finder"
            if creator type of file thisalias is "InDn" and kind of file thisalias is not "InCopy® Lock File" then
                tell application "Adobe InDesign CS6"
                    activate
                    --set user interaction level of script preferences to never interact
                    open thisalias
                    set llist to name of every link of active document
                    if mylinkname is not in llist then
                        tell active document
                            close
                        end tell
                    end if
                    --set user interaction level of script preferences to interact with all
                end tell
            end if
        end tell
    end ProcessItem

  • How to list all the fonts in an FLA?

    Hello all,
    I want to find a way to list all the fonts in my FLA files. I want to see that the developers get the fonts they need before the problems crop up - wild idea, I know. Using the edit/font mapping option seems to only show fonts which are missing or have been re-mapped. How do I get the FLA to give me the name of every font it's holding?

    Not the answer you want, but the closest you're going to find:
    Open the Movie Explorer (Window/Movie Explorer). Select the "A" button at the top of the panel and deselect all others. This gives you a list of all text in the FLA, with the font listed at the end of each line.

Maybe you are looking for

  • ALV  display for  row  s   and columns in this format.have ur full points..

    Hi ALL   I have to dispalay data in the ALV format as : Basic DA HRA PF VPF 20000 500 5000 | 1500     | 600  |          | Details :  Basic   HRA in one Row and   PF , VPF in  second Row. The Amount  regarding htese fields are also displayed in the ne

  • How to use XML fragment in BPEL?

    Hello, How to use XML fragment in BPEL process and whats the purpose of XML fragment ? And why we need it ??

  • No Port classes are generated?

    Hello, Nothing I do causes the Port classes to be generated. Therefore I'm unable to follow any of the webservice examples. All other client code/stubs/XmlBeans are all created and available. The web-based "generate client" generates 2 jar files and

  • 'X' to close tab is missing

    There used to be a red 'x' on each tab for closing the tab. This has disappeared in Firefox 8.0.1. Any chance of getting it back?

  • How can I speed up Compiz?

    I've done a fresh install of Arch on my nvidia-based desktop. I'm using the proprietary nvidia driver and things slow down noticably when I invoke fusion-icon. When I'm working in GNOME normally, things are fine and the desktop is really zippy. Compi