After Cisco Device is boot,execute some command on CLI

Hi
In other forum, introduced me EEM for my purpose.
My need is, after cisco is reloaded some command to be executed.
Is there any sample for this ?
Thanks in advance

Hi
I have added "wait 10" after every command.unfortunately my script is run until before second "wait 10".
My script :
event syslog pattern "SYS-5-RESTART"
action 0 cli command "enable"
action 1 cli command "conf t"
action 1.1 cli command "interface range gigabitEthernet 1/0/1-8"
action 1.2 cli command "shutdown"
action 1.3 cli command "exit"
action 1.4 syslog msg "1111"
action 1.5 wait 10
action 1.6 syslog msg "2222"
action 2 cli command "interface gigabitEthernet 1/0/1"
action 2.1 cli command "no shutdown"
action 2.2 cli command "exit"
action 2.3 syslog msg "3333"
action 2.4 wait 10
action 3 cli command "interface gigabitEthernet 1/0/2"
action 3.1 cli command "no shutdown"
action 3.2 cli command "exit"
action 3.3 syslog msg "4444"
action 3.4 wait 10
action 4 cli command "interface gigabitEthernet 1/0/3"
action 4.1 cli command "no shutdown"
action 4.2 cli command "exit"
action 4.3 syslog msg "5555"
action 4.4 wait 10
action 5 cli command "interface gigabitEthernet 1/0/4"
action 5.1 cli command "no shutdown"
action 5.2 cli command "exit"
action 5.3 syslog msg "6666"
action 5.4 wait 10
action 6 cli command "interface gigabitEthernet 1/0/5"
action 6.1 cli command "no shutdown"
action 6.2 cli command "exit"
action 6.3 syslog msg "7777"
action 6.4 wait 10
action 7 cli command "interface gigabitEthernet 1/0/6"
action 7.1 cli command "no shutdown"
action 7.2 cli command "exit"
action 7.3 syslog msg "8888"
action 7.4 wait 10
action 8 cli command "interface gigabitEthernet 1/0/7"
action 8.1 cli command "no shutdown"
action 8.2 cli command "exit"
action 8.3 syslog msg "9999"
action 8.4 wait 10
action 9 cli command "interface gigabitEthernet 1/0/8"
action 9.1 cli command "no shutdown"
action 9.2 cli command "exit"
action 9.3 syslog msg "1010"
action 9.4 wait 10
action 9.5 cli command "exit"
I did not find any reason for this.
Thanks for any help or guidance

Similar Messages

  • Sudo can't execute some commands[SOLVED]

    Hi Archers,
    I am using sudo and disable root account. There is some problems with sudo such as the following commands:
    #sudo echo "1234"  >/etc/rc.local
    # sudo cd /root
    I can't execute these commands with sudo, instead i have to login as root and execute the commands. So the question is how can I solve these problems?
    The Second issue is how can I give certain user the commands that they can execute. For example, user A is only allowed to use "ls" commands and not any other commands?
    Cheers
    Last edited by hungsonbk (2008-11-17 02:02:29)

    You can't use those commands because it aren't real commands, it are shell builtins and they are ran by your shell which is ran by your regular user.
    sudo echo foo > bar
    This runs the "echo" binary as root but the ">" part is handled by the shell, appropriate way to handle this:
    echo foo|sudo tee bar
    cd wont work neither, if it did you could cd to a directory you don't have permissions to and then you would be in their as regular user, unable to do anything... You should just work from outside /root or use sudo -s.
    For the user thing: man sudoers.
    Last edited by Ramses de Norre (2008-11-15 16:52:55)

  • Executing a command in host machine

    Currently i am doing a project in heterogeneous volume manager, where i need to connect to the host machine and execute some commands inside a java program. Can anyone tell me how to do so.. Are there any api?

    Currently i am doing a project in heterogeneous volume manager, where i need to connect to the host machine and execute some commands inside a java program. Can anyone tell me how to do so.. Are there any api?

  • Getting an Process Execute a command.

    Hi All,
    can I get the process created by the following code
    Process p = Runtime.getRuntime().exec("db2cmd");to execute some commands?
    My problem is I am getting a new window created by executing this line.
    My commands can be executed in the new window that gets created, how can I get a handle of this new window so that I can execute some commands in the new window.
    Any suggestions will be helpful.
    Regards
    Ayusman

    java.lang.ProcessBuilder
    it's in the standard api starting with jdk 1.5
    I don't see how it would help in this case though. Maybe there's something I'm just missing though.
    You might want to consider creating a batch file to run all the various commands you want to do in that window.

  • Execute commands in multiple Cisco devices simultaneously

    Hi all:
    We have a big network and every time we need to execute commands in switches and routers, it takes a lot going one by one to do it. Is there any way, ie using special software, or Linux, scripts, whatever that can be used to execute same commands in all devices at the same time?
    Thanks in advance
    W.

    in CiscoWorks LMS there is the  RME NetConfig task which can do this for you. You can download an eval copy of LMS here (90 day eval for 100 devices)
    http://www.cisco.com/go/nmsevals or
    https://cisco.mediuscorp.com/market/networkers/listSubCat.se.work?TRGT=8&/nxt/rcrs/=1126
    to get the solaris version
    but there is also the the "Cisco Enhanced Device Interface" which perhaps could be a solituon for you:
    http://www.cisco.com/en/US/products/ps6456/tsd_products_support_series_home.html
    not forget to mention the Kiwi Cat Tools:
    http://www.kiwisyslog.com/kiwi-cattools-overview/

  • [Solved] "slim: failed to execute login command" after awesomewm updat

    Hi,
    i updated some weeks ago via pacman -Syu, where also awesome wm was updated from 3.4.* to 3.5.* so I updated my rc.lua as it is told on their wiki, but i cant login with my rc.lua anymore i got the failed to execute login command error from slime. If i use the shipped efault rc.lua it works fine, can someone help me to figure out whats wrong with my rc.lua?
    -- Standard awesome library
    local gears = require("gears")
    local awful = require("awful")
    awful.rules = require("awful.rules")
    require("awful.autofocus")
    -- Widget and layout library
    local wibox = require("wibox")
    -- Theme handling library
    local beautiful = require("beautiful")
    -- Notification library
    local naughty = require("naughty")
    local menubar = require("menubar")
    local vicious = require("vicious")
    function fullscreens(c)
    awful.client.floating.toggle(c)
    if awful.client.floating.get(c) then
    local clientX = screen[1].workarea.x
    local clientY = screen[1].workarea.y
    local clientWidth = 0
    -- look at http://www.rpm.org/api/4.4.2.2/llimits_8h-source.html
    local clientHeight = 2147483640
    for s = 1, screen.count() do
    clientHeight = math.min(clientHeight, screen[s].workarea.height)
    clientWidth = clientWidth + screen[s].workarea.width
    end
    local t = c:geometry({x = clientX, y = clientY, width = clientWidth, height = clientHeight})
    else
    --apply the rules to this client so he can return to the right tag if there is a rule for that.
    awful.rules.apply(c)
    end
    -- focus our client
    client.focus = c
    end
    -- {{{ Error handling
    -- Check if awesome encountered an error during startup and fell back to
    -- another config (This code will only ever execute for the fallback config)
    if awesome.startup_errors then
    naughty.notify({ preset = naughty.config.presets.critical,
    title = "Oops, there were errors during startup!",
    text = awesome.startup_errors })
    end
    -- Handle runtime errors after startup
    do
    local in_error = false
    awesome.connect_signal("debug::error", function (err)
    -- Make sure we don't go into an endless error loop
    if in_error then return end
    in_error = true
    naughty.notify({ preset = naughty.config.presets.critical,
    title = "Oops, an error happened!",
    text = err })
    in_error = false
    end)
    end
    -- {{{ Variable definitions
    -- Themes define colours, icons, and wallpapers
    -- beautiful.init("/home/kili/Repositories/awesome-themes/arch/theme.lua")
    beautiful.init("/usr/share/awesome/themes/default/theme.lua")
    -- This is used later as the default terminal and editor to run.
    terminal = "urxvt"
    editor = os.getenv("EDITOR") or "nano"
    editor_cmd = terminal .. " -e " .. editor
    -- Default modkey.
    -- Usually, Mod4 is the key with a logo between Control and Alt.
    -- If you do not like this or do not have such a key,
    -- I suggest you to remap Mod4 to another key using xmodmap or other tools.
    -- However, you can use another modifier like Mod1, but it may interact with others.
    modkey = "Mod4"
    -- Table of layouts to cover with awful.layout.inc, order matters.
    layouts =
    awful.layout.suit.tile,
    awful.layout.suit.tile.left,
    awful.layout.suit.tile.bottom,
    awful.layout.suit.tile.top,
    awful.layout.suit.floating,
    awful.layout.suit.fair,
    awful.layout.suit.fair.horizontal,
    awful.layout.suit.spiral,
    awful.layout.suit.spiral.dwindle,
    awful.layout.suit.max,
    awful.layout.suit.max.fullscreen,
    awful.layout.suit.magnifier
    -- {{{ Tags
    -- Define a tag table which hold all screen tags.
    tags = {}
    for s = 1, screen.count() do
    -- Each screen has its own tag table.
    tags[s] = awful.tag({ 1, 2, 3, 4, 5}, s, layouts[1])
    end
    -- {{{ Menu
    -- Create a laucher widget and a main menu
    myawesomemenu = {
    { "manual", terminal .. " -e man awesome" },
    { "edit config", editor_cmd .. " " .. awesome.conffile },
    { "restart", awesome.restart },
    { "quit", awesome.quit }
    mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
    { "open terminal", terminal }
    mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, menu = mymainmenu })
    -- {{{ Wibox
    -- Create a textclock widget
    batwidget = wibox.widget.textbox()
    vicious.register(batwidget, vicious.widgets.bat,
    function(widget,args)
    local formatstring = " Bat: "..args[1]..args[2] .."%".. " "..args[3] .. " "
    if args[2] <= 25 and args[1] == "-" then
    return "<span color=\"red\">".. formatstring .. "</span>"
    end
    return formatstring
    end, 60, "BAT0")
    netwidgetETH = wibox.widget.textbox()
    netwidgetWIFI = wibox.widget.textbox()
    vicious.register(netwidgetETH, vicious.widgets.net, ' eth0:<span color="#CC9393">${eth0 down_kb}</span> <span color="#7F9F7F">${eth0 up_kb}</span>', 3)
    vicious.register(netwidgetWIFI, vicious.widgets.net,' wlan0:<span color="#CC9393">${wlan0 down_kb}</span> <span color="#7F9F7F">${wlan0 up_kb}</span>', 3)
    menubar.utils.terminal = terminal
    mytextclock = awful.widget.textclock()--{ align = "right" })
    -- Create a systray
    mysystray = wibox.widget.systray()
    -- Create a wibox for each screen and add it
    mywibox = {}
    mypromptbox = {}
    mylayoutbox = {}
    mytaglist = {}
    mytaglist.buttons = awful.util.table.join(
    awful.button({ }, 1, awful.tag.viewonly),
    awful.button({ modkey }, 1, awful.client.movetotag),
    awful.button({ }, 3, awful.tag.viewtoggle),
    awful.button({ modkey }, 3, awful.client.toggletag),
    awful.button({ }, 4, function(t) awful.tag.viewnext(aweful.tag.getscreen(t)) end),
    awful.button({ }, 5, function(t) awful.tag.viewprev(aweful.tag.getscreen(t)) end)
    mytasklist = {}
    mytasklist.buttons = awful.util.table.join(
    awful.button({ }, 1, function (c)
    if c == client.focus then
    c.minimized = true
    else
    c.minimized = false
    if not c:isvisible() then
    awful.tag.viewonly(c:tags()[1])
    end
    -- This will also un-minimize
    -- the client, if needed
    client.focus = c
    c:raise()
    end
    end),
    awful.button({ }, 3, function ()
    if instance then
    instance:hide()
    instance = nil
    else
    instance = awful.menu.clients({ width=250 })
    end
    end),
    awful.button({ }, 4, function ()
    awful.client.focus.byidx(1)
    if client.focus then client.focus:raise() end
    end),
    awful.button({ }, 5, function ()
    awful.client.focus.byidx(-1)
    if client.focus then client.focus:raise() end
    end))
    for s = 1, screen.count() do
    -- Create a promptbox for each screen
    mypromptbox[s] = awful.widget.prompt()--{ layout = awful.widget.layout.horizontal.leftright })
    -- Create an imagebox widget which will contains an icon indicating which layout we're using.
    -- We need one layoutbox per screen.
    mylayoutbox[s] = awful.widget.layoutbox(s)
    mylayoutbox[s]:buttons(awful.util.table.join(
    awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end),
    awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end),
    awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end),
    awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end)))
    -- Create a taglist widget
    mytaglist[s] = awful.widget.taglist(s, awful.widget.taglist.filter.all, mytaglist.buttons)
    -- Create a tasklist widget
    mytasklist[s] = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, mytasklist.buttons)
    -- Create the wibox
    mywibox[s] = awful.wibox({ position = "top", screen = s })
    -- Widgets that are aligned to the left
    local left_layout = wibox.layout.fixed.horizontal()
    left_layout:add(mylauncher)
    left_layout:add(mytaglist[s])
    left_layout:add(mypromptbox[s])
    -- Widgets that are aligned to the right
    local right_layout = wibox.layout.fixed.horizontal()
    if s == 1 then right_layout:add(wibox.widget.systray()) end
    right_layout:add(netwidgetWIFI)
    right_layout:add(netwidgetETH)
    right_layout:add(batwidget)
    right_layout:add(mytextclock)
    right_layout:add(mylayoutbox[s])
    -- Now bring it all together (with the tasklist in the middle)
    local layout = wibox.layout.align.horizontal()
    layout:set_left(left_layout)
    layout:set_middle(mytasklist[s])
    layout:set_right(right_layout)
    mywibox[s]:set_widget(layout)
    -- Add widgets to the wibox - order matters
    --mywibox[s].widgets = {
    -- mylauncher,
    -- mytaglist[s],
    -- mypromptbox[s],
    --layout = awful.widget.layout.horizontal.leftright
    -- mylayoutbox[s],
    -- mytextclock,
    -- batwidget,
    -- netwidgetETH,
    -- netwidgetWIFI,
    -- s == 1 and mysystray or nil,
    -- mytasklist[s],
    -- layout = awful.widget.layout.horizontal.rightleft
    end
    -- {{{ Mouse bindings
    root.buttons(awful.util.table.join(
    awful.button({ }, 3, function () mymainmenu:toggle() end),
    awful.button({ }, 4, awful.tag.viewnext),
    awful.button({ }, 5, awful.tag.viewprev)
    -- {{{ Key bindings
    globalkeys = awful.util.table.join(
    awful.key({ modkey, }, "Left", awful.tag.viewprev ),
    awful.key({ modkey, }, "Right", awful.tag.viewnext ),
    awful.key({ modkey, }, "Escape", awful.tag.history.restore),
    awful.key({ modkey, }, "j",
    function ()
    awful.client.focus.byidx( 1)
    if client.focus then client.focus:raise() end
    end),
    awful.key({ modkey, }, "k",
    function ()
    awful.client.focus.byidx(-1)
    if client.focus then client.focus:raise() end
    end),
    awful.key({ modkey, }, "w", function () mymainmenu:show() end),
    -- Layout manipulation
    awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end),
    awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end),
    awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end),
    awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end),
    awful.key({ modkey, }, "u", awful.client.urgent.jumpto),
    awful.key({ modkey, }, "Tab",
    function ()
    awful.client.focus.history.previous()
    if client.focus then
    client.focus:raise()
    end
    end),
    -- Standard program
    awful.key({ modkey, }, "Return", function () awful.util.spawn(terminal) end),
    awful.key({ modkey, "Control" }, "r", awesome.restart),
    awful.key({ modkey, "Shift" }, "q", awesome.quit),
    awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end),
    awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end),
    awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1) end),
    awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1) end),
    awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1) end),
    awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1) end),
    awful.key({ modkey, }, "space", function () awful.layout.inc(layouts, 1) end),
    awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(layouts, -1) end),
    awful.key({ modkey, "Control" }, "n", awful.client.restore),
    -- Prompt
    awful.key({ modkey }, "r", function () mypromptbox[mouse.screen]:run() end),
    awful.key({ modkey }, "x",
    function ()
    awful.prompt.run({ prompt = "Run Lua code: " },
    mypromptbox[mouse.screen].widget,
    awful.util.eval, nil,
    awful.util.getdir("cache") .. "/history_eval")
    end),
    -- Multimedia
    awful.key({ }, "XF86AudioLowerVolume", function () awful.util.spawn("amixer -q sset Master 2dB-") end),
    awful.key({ }, "XF86AudioRaiseVolume", function () awful.util.spawn("amixer -q sset Master 2dB+") end),
    awful.key({ }, "XF86AudioNext",function () awful.util.spawn( "mocp -f" ) end),
    awful.key({ }, "XF86AudioPrev",function () awful.util.spawn( "mocp -r" ) end),
    awful.key({ }, "XF86AudioPlay",function () awful.util.spawn( "mocp -G" ) end),
    awful.key({ }, "Print", function () awful.util.spawn("ksnapshot") end),
    awful.key({ }, "", function () awful.util.spawn("slimlock") end)
    clientkeys = awful.util.table.join(
    awful.key({ modkey, }, "f", function (c) c.fullscreen = not c.fullscreen end),
    awful.key({ modkey, "Shift" }, "c", function (c) c:kill() end),
    awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
    awful.key({ modkey, "Control" }, "Return", function (c) c:swap(awful.client.getmaster()) end),
    awful.key({ modkey, }, "o", awful.client.movetoscreen ),
    -- awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
    awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
    awful.key({ modkey, }, "n",
    function (c)
    -- The client currently has the input focus, so it cannot be
    -- minimized, since minimized clients can't have the focus.
    c.minimized = true
    end),
    awful.key({ modkey, }, "m",
    function (c)
    c.maximized_horizontal = not c.maximized_horizontal
    c.maximized_vertical = not c.maximized_vertical
    end),
    awful.key({ modkey, "Shift" }, "f", fullscreens)
    -- Compute the maximum number of digit we need, limited to 9
    keynumber = 0
    for s = 1, screen.count() do
    keynumber = math.min(9, math.max(#tags[s], keynumber))
    end
    -- Bind all key numbers to tags.
    -- Be careful: we use keycodes to make it works on any keyboard layout.
    -- This should map on the top row of your keyboard, usually 1 to 9.
    for i = 1, keynumber do
    globalkeys = awful.util.table.join(globalkeys,
    awful.key({ modkey }, "#" .. i + 9,
    function ()
    local screen = mouse.screen
    if tags[screen][i] then
    awful.tag.viewonly(tags[screen][i])
    end
    end),
    awful.key({ modkey, "Control" }, "#" .. i + 9,
    function ()
    local screen = mouse.screen
    if tags[screen][i] then
    awful.tag.viewtoggle(tags[screen][i])
    end
    end),
    awful.key({ modkey, "Shift" }, "#" .. i + 9,
    function ()
    if client.focus and tags[client.focus.screen][i] then
    awful.client.movetotag(tags[client.focus.screen][i])
    end
    end),
    awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
    function ()
    if client.focus and tags[client.focus.screen][i] then
    awful.client.toggletag(tags[client.focus.screen][i])
    end
    end))
    end
    clientbuttons = awful.util.table.join(
    awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
    awful.button({ modkey }, 1, awful.mouse.client.move),
    awful.button({ modkey }, 3, awful.mouse.client.resize))
    -- Set keys
    root.keys(globalkeys)
    -- Set Firefox to always map on tags number 2 of screen 1.
    -- { rule = { class = "Firefox" },
    -- properties = { tag = tags[1][2] } },
    -- {{{ Rules
    if screen.count() > 1 then
    awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
    properties = { border_width = beautiful.border_width,
    -- border_color = beautiful.border_normal,
    focus = true,
    keys = clientkeys,
    buttons = clientbuttons } },
    { rule = { class = "MPlayer" },
    properties = { floating = true } },
    { rule = { class = "gimp" },
    properties = { floating = true } },
    { rule = { class = "Xdialog" },
    properties = { floating = true } },
    { rule = { class = "Firefox" },
    properties = { tag = tags[1][1] } },
    { rule = { name = "Thunderbird" },
    properties = { tag = tags[1][2] } },
    { rule = { instance = "plugin-container" },
    properties = { floating = true } },
    { rule = { class = "Luakit" },
    properties = { floating = true } }
    else
    awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
    properties = { border_width = beautiful.border_width,
    -- border_color = beautiful.border_normal,
    focus = true,
    keys = clientkeys,
    buttons = clientbuttons } },
    { rule = { class = "MPlayer" },
    properties = { floating = true } },
    { rule = { class = "gimp" },
    properties = { floating = true } },
    { rule = { class = "Firefox" },
    properties = { tag = tags[1][2] } },
    { rule = { name = "Thunderbird" },
    properties = { tag = tags[1][3] } },
    { rule = { instance = "plugin-container" },
    properties = { floating = true, fullscreen = true } },
    { rule = { class = "Dolphin" },
    properties = { floating = false, fullscreen = false, tag = tags[1][4] } },
    { rule = { class = "Luakit" },
    properties = { floating = true } },
    { rule = { class = "Pidgin" },
    properties = { tag = tags[1][5] } }
    end
    -- {{{ Signals
    -- Signal function to execute when a new client appears.
    client.connect_signal("manage", function (c, startup)
    -- Add a titlebar
    -- awful.titlebar.add(c, { modkey = modkey })
    -- Enable sloppy focus
    c:connect_signal("mouse::enter", function(c)
    if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
    and awful.client.focus.filter(c) then
    client.focus = c
    end
    end)
    if not startup then
    -- Set the windows at the slave,
    -- i.e. put it at the end of others instead of setting it master.
    -- awful.client.setslave(c)
    -- Put windows in a smart way, only if they does not set an initial position.
    if not c.size_hints.user_position and not c.size_hints.program_position then
    awful.placement.no_overlap(c)
    awful.placement.no_offscreen(c)
    end
    end
    local titlebars_enabled = false
    if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
    -- Widgets that are aligned to the left
    local left_layout = wibox.layout.fixed.horizontal()
    left_layout:add(awful.titlebar.widget.iconwidget(c))
    -- Widgets that are aligned to the right
    local right_layout = wibox.layout.fixed.horizontal()
    right_layout:add(awful.titlebar.widget.floatingbutton(c))
    right_layout:add(awful.titlebar.widget.maximizedbutton(c))
    right_layout:add(awful.titlebar.widget.stickybutton(c))
    right_layout:add(awful.titlebar.widget.ontopbutton(c))
    right_layout:add(awful.titlebar.widget.closebutton(c))
    -- The title goes in the middle
    local title = awful.titlebar.widget.titlewidget(c)
    title:buttons(awful.util.table.join(
    awful.button({ }, 1, function()
    client.focus = c
    c:raise()
    awful.mouse.client.move(c)
    end),
    awful.button({ }, 3, function()
    client.focus = c
    c:raise()
    awful.mouse.client.resize(c)
    end)
    -- Now bring it all together
    local layout = wibox.layout.align.horizontal()
    layout:set_left(left_layout)
    layout:set_right(right_layout)
    layout:set_middle(title)
    awful.titlebar(c):set_widget(layout)
    end
    end)
    client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
    client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
    Here is also my slime config and my initrc
    ls -lisa .xinitrc
    3276814 4 -rwxr-xr-x ...
    #!/bin/sh
    xrdb -merge ~/.Xresources
    wicd-client --tray &
    exec awesome #>> ~/.cache/awesome/stdout 2>> ~/.cache/awesome/stderr
    # Path, X server and arguments (if needed)
    # Note: -xauth $authfile is automatically appended
    default_path /bin:/usr/bin:/usr/local/bin
    default_xserver /usr/bin/X
    xserver_arguments -nolisten tcp vt07
    # Commands for halt, login, etc.
    halt_cmd /sbin/shutdown -h now
    reboot_cmd /sbin/shutdown -r now
    console_cmd /usr/bin/xterm -C -fg white -bg black +sb -T "Console login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
    #suspend_cmd /usr/sbin/suspend
    # Full path to the xauth binary
    xauth_path /usr/bin/xauth
    # Xauth file for server
    authfile /var/run/slim.auth
    # Activate numlock when slim starts. Valid values: on|off
    numlock on
    # Hide the mouse cursor (note: does not work with some WMs).
    # Valid values: true|false
    # hidecursor false
    # This command is executed after a succesful login.
    # you can place the %session and %theme variables
    # to handle launching of specific commands in .xinitrc
    # depending of chosen session and slim theme
    # NOTE: if your system does not have bash you need
    # to adjust the command according to your preferred shell,
    # i.e. for freebsd use:
    # login_cmd exec /bin/sh - ~/.xinitrc %session
    login_cmd exec /bin/bash -login ~/.xinitrc %session
    # Commands executed when starting and exiting a session.
    # They can be used for registering a X11 session with
    # sessreg. You can use the %user variable
    # sessionstart_cmd some command
    # sessionstop_cmd some command
    # Start in daemon mode. Valid values: yes | no
    # Note that this can be overriden by the command line
    # options "-d" and "-nodaemon"
    # daemon yes
    # Available sessions (first one is the default).
    # The current chosen session name is replaced in the login_cmd
    # above, so your login command can handle different sessions.
    # see the xinitrc.sample file shipped with slim sources
    sessions awesome,xfce4,icewm-session,wmaker,blackbox
    # Executed when pressing F11 (requires imagemagick)
    screenshot_cmd import -window root /slim.png
    # welcome message. Available variables: %host, %domain
    welcome_msg Welcome to %host
    # Session message. Prepended to the session name when pressing F1
    # session_msg Session:
    # shutdown / reboot messages
    shutdown_msg The system is halting...
    reboot_msg The system is rebooting...
    # default user, leave blank or remove this line
    # for avoid pre-loading the username.
    default_user kili
    # Focus the password field on start when default_user is set
    # Set to "yes" to enable this feature
    focus_password yes
    # Automatically login the default user (without entering
    # the password. Set to "yes" to enable this feature
    #auto_login no
    # current theme, use comma separated list to specify a set to
    # randomly choose from
    current_theme archlinux-simplyblack
    # Lock file
    lockfile /var/lock/slim.lock
    # Log file
    logfile /var/log/slim.log
    Thanks in advance!
    Edit:
    Besides a lot of other errors the problem was the systray. It was created 2 times, now login works again. I figured that out via enabling logging for awesome in the xinitrc again.
    Last edited by stubb (2013-01-08 23:20:05)

    Hi,
    I have the same kind of issue after updated slim from v1.3.4-4 to v1.3.5-1.
    see my topic  here :
    https://bbs.archlinux.org/viewtopic.php?id=156792
    Last edited by cedricl (2013-01-24 17:16:42)

  • Execute a command after 3 seconds...

    hey guys... there´s a way on AS to execute a command like.... menu2items.selectedIndex = 2; after some seconds?
    cya....

    Example code:
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    // create a timer that executes after 3 seconds, only once
    public var timer:Timer = new Timer( 3*1000, 1 );
    public function init():void
         // add event listeners
         timer.addEventListener( TimerEvent.TIMER, handleTimerEvent );
         // start the timer
         timer.start();
    public function handleTimerEvent( event:TimerEvent ):void
         menu2items.selectedIndex = 2;
    Let me know if that helps...
    Ben Edwards

  • "No bootable device --- insert boot disk and press any key" after setting up Bootcamp

    Hi guys,
    I am trying to install Windows 7 via Bootcamp but after setting up Bootcamp and restarting the computer I get the error message "No bootable device --- insert boot disk and press any key".
    I use an iMac with a DIY Fusion Drive consisting of a 120 GB SSD and a 1 TB HDD.
    Since Bootcamp can only be installed on the HDD I believe disk1 is the interesting one. Here is the output of sudo gpt -r -vv show disk1:
    gpt show: disk1: mediasize=1000204886016; sectorsize=512; blocks=1953525168
    gpt show: disk1: Suspicious MBR at sector 0
    gpt show: disk1: Pri GPT at sector 1
    gpt show: disk1: Sec GPT at sector 1953525167
           start        size  index  contents
               0           1         MBR
               1           1         Pri GPT header
               2          32         Pri GPT table
              34           6        
              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
          409640  1709658208      2  GPT part - 53746F72-6167-11AA-AA11-00306543ECAC
      1710067848     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      1711337384          88        
      1711337472   242186240      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
      1953523712        1423        
      1953525135          32         Sec GPT table
      1953525167           1         Sec GPT header
    And the output of sudo fdisk /dev/disk1:
    Disk: /dev/disk1
    geometry: 121601/255/63 [1953525168 sectors]
    Signature: 0xAA55
             Starting       Ending
    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
    1: EE    0   0   2 -   25 127  14 [         1 -     409639] <Unknown ID>
    2: AF   25 127  15 - 1023 254  63 [    409640 - 1709658208] HFS+       
    *3: 07 1023 254  63 - 1023 254  63 [1711337472 -  242186240] HPFS/QNX/AUX
    4: 00    0   0   0 -    0   0   0 [         0 -          0] unused
    Here is also the list of my disks:
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *120.0 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         119.7 GB   disk0s2
       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:          Apple_CoreStorage                         875.3 GB   disk1s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk1s3
       4:       Microsoft Basic Data BOOTCAMP                124.0 GB   disk1s4
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS FusionDrive            *975.5 GB   disk2
                                     Logical Volume on disk0s2, disk1s2
                                     FFA13FBC-2001-40B7-8BBB-BE6EECF8AC11
                                     Unencrypted Fusion Drive
    /dev/disk3
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            GRMCPRXFRER_DE_DVD     *3.2 GB     disk3
    I have gdisk installed and am ready to mess around. Any help would be greatly appreciated!

    So, when I started my iMac yesterday morning it couldn't boot into OS X anymore either. Several hours of restoring later I am back to square one. I tried installing Windows 7 via Bootcamp again but got the same error message. This time I noticed though that Bootcamp asked me to remove the bootable option from the USB drive with the support drivers in order to install from DVD. Does that ring any bells? I am building another USB drive right now, hoping it would ask me again but this I will decline and try to boot from it.
    When you restored, was a Time Machine restore used? TM does not backup Bootcamp and does an erase of the partition. It may also erase the entire disk (including the Fusion drive) if the specific backup of the volume layout of the disks indicates a pre-Bootcamp layout.
    My MacBook Pro is a 2009 model and also once had a built-in optical drive. I have no idea why it would work on there but not on the iMac.
    You also wrote
    When I plug the external DVD drive in, the boot manager recognizes a "Windows" disc and an "EFI Boot" disc. If I select the "Windows" disc I get a black screen with a blinking dash.
    The blinking dash indicates that it is working, but does not have the requisite drivers to enable the GPU/Mouse/Keyboard on the media being used.
    In the MBP case, did you have two drives installed in the MBP, a Fusion configuration, and then were able to successfully install Bootcamp?
    For example on a Mac mini I have a DIY Fusion drive, but the sequence was done differently. Bootcamp was installed using a USB stick+Windows 7 ISO.
    1. The two disks are not in a CoreStorage set up initially.
    2. The second disk is partitioned (64Gb) and a Bootcamp W7 install completed via USB (this is different HW as compared to IMac, because it has no Optical drive).
    3. After the HDD is partitioned, the first partition and the SSD are then used to create a CoreStorage volume.
    4. Here is the working version and disk layout. (I plan to erase both disks, put W7 on a partition on the SSD, and make the non-Bootcamp+entire HDD in a CoreStorage volume).
    diskutil cs list
    CoreStorage logical volume groups (1 found)
    |
    +-- Logical Volume Group A8C00490-0E14-401F-AB69-59F37724E8C4
        =========================================================
        Name:         Fusion
        Status:       Online
        Size:         1190201270272 B (1.2 TB)
        Free Space:   0 B (0 B)
        |
        +-< Physical Volume 4772013B-5520-4801-9BE5-BCAEF4AEDAB3
        |   ----------------------------------------------------
        |   Index:    0
        |   Disk:     disk0s2
        |   Status:   Online
        |   Size:     255716540416 B (255.7 GB)
        |
        +-< Physical Volume A679A101-3C78-4A59-B5EE-A4339210CFAD
        |   ----------------------------------------------------
        |   Index:    1
        |   Disk:     disk1s2
        |   Status:   Online
        |   Size:     934484729856 B (934.5 GB)
        |
        +-> Logical Volume Family 5EF5C7CA-0B9C-4169-82A1-41C84F206672
            Encryption Status:       Unlocked
            Encryption Type:         None
            Conversion Status:       NoConversion
            Conversion Direction:    -none-
            Has Encrypted Extents:   No
            Fully Secure:            No
            Passphrase Required:     No
            |
            +-> Logical Volume 1512657C-ED13-4B31-82C6-7AECBBCA7F98
                Disk:                  disk2
                Status:                Online
                Size (Total):          1185508581376 B (1.2 TB)
                Conversion Progress:   -none-
                Revertible:            No
                LV Name:               Fusion HD
                Volume Name:           Fusion HD
                Content Hint:          Apple_HFS
    diskutil list
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *256.1 GB   disk0
       1:                        EFI EFI                     209.7 MB   disk0s1
       2:          Apple_CoreStorage                         255.7 GB   disk0s2
       3:                 Apple_Boot Boot OS X               134.2 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *1.0 TB     disk1
       1:                        EFI EFI                     209.7 MB   disk1s1
       2:          Apple_CoreStorage                         934.5 GB   disk1s2
       3:                 Apple_Boot Boot OS X               650.0 MB   disk1s3
       4:       Microsoft Basic Data BOOTCAMP                64.9 GB    disk1s4
    /dev/disk2
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Fusion HD              *1.2 TB     disk2

  • HT1199 After trying to install window 7 my new iMac will not reboot back to apple. Black screen "No bootable device -- insert boot disk and press any key". How do I get out of this?

    After trying to install Windows 7 in my new iMac It will not boot up back to Apple. I have a black screen with the following "No bootable device -- insert boot disk and press any key". My iMac did not come with a boot disk. What can I do?

    Try holding down the option/alt key during a restart and see if you can see/select your boot drive there.

  • After Update Mac from OS 10.7 to OS 10.8 No windows- no bootable device insert boot disk

    Hi Please help.
    I ve updated  my mac from OS X [10.7] to [10.8] and then i tried to use windows but i get this error "No bootable device -- insert boot disk and press any key"
    What could be the problem,
    I can see my boot camp hard drive partion in mac and even i can see my stuff in it. but no start up with PC
    iMac Intel, 20" 2007

    I made the System Recovery Options and it is showing  "Checking for rrors this might take more  than an hour..."
    finally i get this error "Startup repair cannnot repair this computer automatically"
    then after this i tried to start up with holding option key and choosing the Bootcamp drive. winsows asked me to start up using repair tool or normally, I chose it "NORMAL" It came up but after showing Windows loading page it gave me this blure screen error "STOP .....FATAL error..... the system has been shut down"
    :|
    so any suggestion ???

  • After restart "No bootable device -- insert boot disk and press any key

    Hi I am new to the community.
    I have an iMac, upgraded from Snow Leopard to Mavericks when it was available. Yesterday the Mac did not detect a USB stick, selected restart, after restart "No bootable device -- insert boot disk and press any key.
    Tried holding down the option key on reboot, but no success, wireless keyboard does not seem to be responding.
    Any suggestions please?

    Hi All,
    Managed to get the Mac to see the keyboard. My Mac is up and running now.
    Holding down the "Option" key worked and I was able to select the drive to boot off.
    Thanks to previous support all is now working.

  • User form: to execute some operation at server side for a command click

    jurajsiska Apr 11, 2006 7:56 AM
    I'm creating a customer user form. I want to do some thing at server side when a command is clicked, but don't want to save any modified value until user clicks "Save" button. There is property for command display class, named "command", but it just gives you opportunity to execute some pre-defined command, Save, Recalcuate, or Cance. How can I achieve this by customizing the event handler for command click?

    I just figured out a way myself. Create a hidden field in your user form, use the java script to set hidden field to some value for the "onclick" property of BUTTON, and to check this hidden value in the properties command of BUTTON to know if it's coming from click or refres/recalculate. Of course you need to reset the hidden value in the expression of command property.
    Hope it's helpful for somebody having the same situation,

  • Execute a command only after all subscribers have consumed their messages

    Let's say we have queue Q1 and we enqueue two messages M1 and M2. Q1 has three subscribers S1, S2, and S3. We want to execute some process P1 only after ALL subscribers (S1-S2-S3) have consumed all of their message (M1-M2). Is this something Q1 would know about (it knows once all subscribers have processed all their messages) so that on "ALL Done" event it can start P1 either directly or by enqueuing a message for another subscriber, or is this something that requires hand-written code that would keep track of who has dequeued what and execute P1 once everybody is done.

    what you can do is to right another piece of code querying queue table on regular basis. When your query is returning 0 count that shows that all messages have been dequeued.

  • HT204389 In hands free mode, why does Siri lock my phone after executing a command?

    Anytime I'm using Siri in my car in hands free mode, she locks my phone immediately after executing my command.  Then I can't access certain abilities without unlocking first - which obviously is missing the point of hands free mode.
    Thank you!

    May have found a solution for part of this. In the first senario when the two names are presented, repeat request with a verb and a noun. Say call John.
    As for the 2nd senerio, I have not been able to find a solution.
    Siri appears to be a toy and an advertizing campain talking voice but little else. Upsetting as it was one of the reasons for choosing this platform. It will get better but not soon enough.
    For now considering turning it off and using regular voice control agumented by Plantronics Vocalast service. I can possibly go on business trips and use my phone hands free whith the state Siri is in right now.

  • Unable to execute update commands after improper shutdown

    Hi!
    It sounds a little strange.
    I am unable to execute update commands from my application. My machine was shutdown improperly. Then I loaded the datastores again. I was able to execute select commands but unable to execute update commands. It was working fine before shutdown.
    Regards
    /Ahmad

    Hi Chris!
    SQLExecute method of ODBC is returning -1.
    I have checked the syntax of the query its also correct. I am also very confused on it why is this happening. If I execute the update command from ttisql it works ok.
    The code is the same that we discussed in our previous conversation.
    The steps I did after improper shutdown:
    1. Started TimeTen daemon >ttdaemonadmin -start
    2. Loaded the Data store >ttAdmin -ramLoad spiderM
    3. Executed the code
    The output of ttstatus is as follows:
    TimesTen status report as of Fri Jun 29 21:45:41 2007
    Daemon pid 8273 port 17001 instance tt70
    TimesTen server pid 8284 started on port 17003
    TimesTen webserver pid 8280 started on port 17005
    Data store /tmp/spiderM
    There are 6 connections to the data store
    Data store is in shared mode
    Shared Memory KEY 0x08004f3c ID 557070
    Type PID Context Connection Name ConnID
    Subdaemon 8278 0x0000000000570520 Worker 2042
    Subdaemon 8278 0x00000000005dc4d0 Flusher 2043
    Subdaemon 8278 0x000000000060d5d0 Checkpoint 2044
    Subdaemon 8278 0x000000000063e5a0 Aging 2045
    Subdaemon 8278 0x000000000066f570 HistGC 2046
    Subdaemon 8278 0x00000000006a0430 Monitor 2047
    RAM residence policy: Manual
    Data store is manually loaded into RAM
    Replication policy : Manual
    Cache agent policy : Manual
    Data store /usr/users/spider/TimesTen/tt70/info/TT_tt70
    There are no connections to the data store
    Replication policy : Manual
    Cache agent policy : Manual
    Access control enabled.
    End of report
    Regards
    /Ahmad

Maybe you are looking for

  • Error opening documents office web apps or creating new document

    I have installed SharePoint 2013 with Office Web Apps 2013 using http. Everything appears to be ok, but when I try to create a new document I get a an error: Microsoft ... Web App. Sorry, we ran into a problem. Please try again. However, the document

  • IMac can see my Macbook Air but not my Macbook

    Recently upgraded iMac and Macbook to 10.5.8, Macbook Air running 10.5.7 Both laptops connected to iMac via Netgear wireless router. All was fine until yesterday. Now my iMac can't see the Macbook but can see the Macbook Air when I go to Finder/Netwo

  • Why does Mozilla/Firefox support OS X 10.4.11 and Apple does not?

    I have a RELIABLE PowerMac B/W with a Sonnet G4 processor. I can not install Leopard/Snow Leopard because it seems that this software release requires an Intel processor. Being on a fixed income, I am unable to just go out and purchase a new Mac. As

  • Padding character fields with zeros

    Hello, I need to add zeros to the end of character fields TYPE C. I know i can use the conversion routines but that only works for numeric fields. Thanks

  • Macbook Pro...Where's MY recall???? my melting mac

    i'm sick and tired of this...i've been a devout mac follower for years and always support and switch people to their products..now why am i getting screwed for being a supporter? my piece of ** macbook pro is: literally disintegrating, my backlight i